src/engine/eTeam.cpp File Reference

#include "eTeam.h"
#include "tSysTime.h"
#include "rFont.h"
#include "nConfig.h"
#include <set>

Include dependency graph for eTeam.cpp:

Go to the source code of this file.

Classes

class  eTeamColorConfig

Defines

#define TEAMCOLORS   8

Functions

static tColoredStringProxy ColorString (const eTeam *t)
 Creates a color string inserter.

Variables

static unsigned short se_team_rgb [TEAMCOLORS][3]
static tString se_team_name [TEAMCOLORS]
static eTeamColorConfig se_team_config [TEAMCOLORS]
nNOInitialisator< eTeameTeam_init (220,"eTeam")
static bool newTeamAllowed
static nSettingItem< bool > se_newTeamAllowed ("NEW_TEAM_ALLOWED", newTeamAllowed)
static bool se_allowTeamNameColor = true
static bool se_allowTeamNamePlayer = true
static bool se_allowTeamNameLeader = false
static tSettingItem< bool > se_allowTeamNameColorConfig ("ALLOW_TEAM_NAME_COLOR", se_allowTeamNameColor)
static tSettingItem< bool > se_allowTeamNamePlayerConfig ("ALLOW_TEAM_NAME_PLAYER", se_allowTeamNamePlayer)
static tSettingItem< bool > se_allowTeamNameCustomConfig ("ALLOW_TEAM_NAME_LEADER", se_allowTeamNameLeader)
static int imbalance = 1
static eTeamse_ColoredTeams [TEAMCOLORS] = {0,0,0,0,0,0,0,0}
static bool se_centerPlayerIsBoss = true
static tSettingItem< bool > se_centerPlayerIsBossConf ("TEAM_CENTER_IS_BOSS", se_centerPlayerIsBoss)


Define Documentation

#define TEAMCOLORS   8

Definition at line 35 of file eTeam.cpp.

Referenced by eTeam::NameTeamAfterColor().


Function Documentation

static tColoredStringProxy ColorString ( const eTeam t  )  [inline, static]

Creates a color string inserter.

Definition at line 94 of file eTeam.cpp.

References eTeam::B(), eTeam::G(), and eTeam::R().

Referenced by eTeam::Ranking(), eTeam::RankingGraph(), and welcome().

00095 {
00096     return tColoredStringProxy( t->R()/15.0f, t->G()/15.0f, t->B()/15.0f );
00097 }

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

nNOInitialisator<eTeam> eTeam_init(220,"eTeam")

Referenced by eTeam::CreatorDescriptor().

int imbalance = 1 [static]

Definition at line 605 of file eTeam.cpp.

Referenced by eTeam::EnforceConstraints(), and eTeam::RemovePlayer().

bool newTeamAllowed [static]

Definition at line 115 of file eTeam.cpp.

Referenced by eTeam::UpdateStaticFlags().

bool se_allowTeamNameColor = true [static]

Definition at line 119 of file eTeam.cpp.

Referenced by eTeam::UpdateAppearance().

tSettingItem<bool> se_allowTeamNameColorConfig("ALLOW_TEAM_NAME_COLOR", se_allowTeamNameColor) [static]

tSettingItem<bool> se_allowTeamNameCustomConfig("ALLOW_TEAM_NAME_LEADER", se_allowTeamNameLeader) [static]

bool se_allowTeamNameLeader = false [static]

Definition at line 121 of file eTeam.cpp.

Referenced by eTeam::UpdateAppearance().

bool se_allowTeamNamePlayer = true [static]

Definition at line 120 of file eTeam.cpp.

Referenced by eTeam::UpdateAppearance().

tSettingItem<bool> se_allowTeamNamePlayerConfig("ALLOW_TEAM_NAME_PLAYER", se_allowTeamNamePlayer) [static]

bool se_centerPlayerIsBoss = true [static]

Definition at line 1111 of file eTeam.cpp.

Referenced by eTeam::OldestAIPlayer(), eTeam::OldestHumanPlayer(), and eTeam::OldestPlayer().

tSettingItem<bool> se_centerPlayerIsBossConf("TEAM_CENTER_IS_BOSS", se_centerPlayerIsBoss) [static]

eTeam* se_ColoredTeams[TEAMCOLORS] = {0,0,0,0,0,0,0,0} [static]

Definition at line 801 of file eTeam.cpp.

nSettingItem<bool> se_newTeamAllowed("NEW_TEAM_ALLOWED", newTeamAllowed) [static]

Referenced by eTeam::UpdateStaticFlags().

eTeamColorConfig se_team_config[TEAMCOLORS] [static]

Definition at line 91 of file eTeam.cpp.

tString se_team_name[TEAMCOLORS] [static]

Initial value:

{
    tString("$team_name_blue"),
    tString("$team_name_gold"),
    tString("$team_name_red"),
    tString("$team_name_green"),
    tString("$team_name_violet"),
    tString("$team_name_ugly"),
    tString("$team_name_white"),
    tString("$team_name_black")
}

Definition at line 48 of file eTeam.cpp.

unsigned short se_team_rgb[TEAMCOLORS][3] [static]

Initial value:

{ {  4,  8, 15 } , 
    { 15, 15,  4 } , 
    { 15,  4,  4 } , 
    {  4, 15,  4 } , 
    { 15,  4, 15 } , 
    {  4, 15, 15 } , 
    { 15, 15, 15 } , 
    {  7,  7,  7 }   
}

Definition at line 37 of file eTeam.cpp.

Referenced by eTeamColorConfig::eTeamColorConfig(), and eTeam::UpdateAppearance().


Generated on Sat Mar 15 22:58:54 2008 for Armagetron Advanced by  doxygen 1.5.4