#include "eTeam.h"
#include "tSysTime.h"
#include "rFont.h"
#include "nConfig.h"
#include <set>
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< eTeam > | eTeam_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 eTeam * | se_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 TEAMCOLORS 8 |
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 }
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] |
bool se_allowTeamNameColor = true [static] |
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] |
bool se_allowTeamNamePlayer = true [static] |
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] |
nSettingItem<bool> se_newTeamAllowed("NEW_TEAM_ALLOWED", newTeamAllowed) [static] |
Referenced by eTeam::UpdateStaticFlags().
eTeamColorConfig se_team_config[TEAMCOLORS] [static] |
tString se_team_name[TEAMCOLORS] [static] |
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().