eTeamColorConfig Class Reference

Collaboration diagram for eTeamColorConfig:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 eTeamColorConfig ()
 ~eTeamColorConfig ()

Private Types

typedef tSettingItem< tStringnameConf
typedef tSettingItem< unsigned
short int > 
colorConf

Private Attributes

colorConfm_red
colorConfm_green
colorConfm_blue
nameConfm_name

Static Private Attributes

static int teamCount = 0


Detailed Description

Definition at line 62 of file eTeam.cpp.


Member Typedef Documentation

typedef tSettingItem<tString> eTeamColorConfig::nameConf [private]

Definition at line 63 of file eTeam.cpp.

typedef tSettingItem<unsigned short int> eTeamColorConfig::colorConf [private]

Definition at line 64 of file eTeam.cpp.


Constructor & Destructor Documentation

eTeamColorConfig::eTeamColorConfig (  )  [inline]

Definition at line 69 of file eTeam.cpp.

References m_blue, m_green, m_name, m_red, se_team_rgb, and teamCount.

00069                        {
00070         std::ostringstream name(""), red(""), green(""), blue("");
00071         name  << "TEAM_NAME_"  << teamCount + 1;
00072         red   << "TEAM_RED_"   << teamCount + 1;
00073         green << "TEAM_GREEN_" << teamCount + 1;
00074         blue  << "TEAM_BLUE_"  << teamCount + 1;
00075         m_name  = new nameConf (name .str().c_str(), se_team_name[teamCount]);
00076         m_red   = new colorConf(red  .str().c_str(), se_team_rgb [teamCount][0]);
00077         m_green = new colorConf(green.str().c_str(), se_team_rgb [teamCount][1]);
00078         m_blue  = new colorConf(blue .str().c_str(), se_team_rgb [teamCount][2]);
00079         ++teamCount;
00080     }

eTeamColorConfig::~eTeamColorConfig (  )  [inline]

Definition at line 81 of file eTeam.cpp.

References m_blue, m_green, m_name, and m_red.

00081                         {
00082         delete m_name;
00083         delete m_red;
00084         delete m_green;
00085         delete m_blue;
00086     }


Member Data Documentation

colorConf* eTeamColorConfig::m_red [private]

Definition at line 65 of file eTeam.cpp.

Referenced by eTeamColorConfig(), and ~eTeamColorConfig().

colorConf * eTeamColorConfig::m_green [private]

Definition at line 65 of file eTeam.cpp.

Referenced by eTeamColorConfig(), and ~eTeamColorConfig().

colorConf * eTeamColorConfig::m_blue [private]

Definition at line 65 of file eTeam.cpp.

Referenced by eTeamColorConfig(), and ~eTeamColorConfig().

nameConf* eTeamColorConfig::m_name [private]

Definition at line 66 of file eTeam.cpp.

Referenced by eTeamColorConfig(), and ~eTeamColorConfig().

int eTeamColorConfig::teamCount = 0 [static, private]

Definition at line 67 of file eTeam.cpp.

Referenced by eTeamColorConfig().


The documentation for this class was generated from the following file:
Generated on Sat Mar 15 23:30:34 2008 for Armagetron Advanced by  doxygen 1.5.4