#include <Player.h>
Public Types | |
| enum | teamColor { red, blue, undefinedTeamColor } |
| possible team colors More... | |
| enum | playerNumber { one = 0, two, three, four, five, undefinedPlayerNumber, numOfPlayerNumbers = undefinedPlayerNumber } |
| the possible player numbers More... | |
Public Member Functions | |
| Player () | |
| Constructor. | |
| void | load () |
| Loads the data from player.cfg. | |
| teamColor | getTeamColor () const |
| returns the team color | |
| void | setTeamColor (teamColor t) |
| sets the team color | |
| char * | getTeamName () |
| playerNumber | getPlayerNumber () const |
| returns the player number | |
| void | setPlayerNumber (playerNumber n) |
| sets the player number | |
Static Public Member Functions | |
| const char * | getTeamColorName (teamColor color) |
| returns the name of a color | |
| teamColor | getTeamColorFromString (char *name) |
| returns the color for a given name | |
| const char * | getPlayerNumberName (playerNumber number) |
| returns the name of a number | |
| playerNumber | getPlayerNumberFromString (char *name) |
| returns the number for a given name | |
Private Attributes | |
| teamColor | theTeamColor |
| the team color of the player | |
| playerNumber | thePlayerNumber |
| the number of the player | |
| char | theTeamName [16] |
| the team-name of the player | |
Definition at line 28 of file Player.h.
|
|
possible team colors
|
|
|
the possible player numbers
|
|
|
Constructor.
Definition at line 48 of file Player.cpp. References thePlayerNumber, theTeamColor, undefinedPlayerNumber, and undefinedTeamColor. |
|
|
Loads the data from player.cfg.
Definition at line 54 of file Player.cpp. References ASSERT, InStream< InFile, InConfig >::eof(), InFile::exists(), four, getPlayerNumberFromString(), getTeamColorFromString(), getTeamColorName(), one, thePlayerNumber, theTeamColor, theTeamName, three, and two. Referenced by Process::Process(). |
Here is the call graph for this function:

|
|
returns the name of a color
Definition at line 41 of file Player.h. Referenced by load(). |
|
|
|
sets the team color
Definition at line 55 of file Player.h. References theTeamColor. Referenced by Motion::main(), RoboCupGameManagerSymbols::setTeamColor(), and RoboCupGameManagerSymbols::update(). |
|
|
returns the color for a given name
Definition at line 58 of file Player.h. References undefinedTeamColor. Referenced by load(). |
|
|
returns the name of a number
|
|
|
Definition at line 96 of file Player.h. References theTeamName. |
|
|
|
sets the player number
Definition at line 105 of file Player.h. References thePlayerNumber. |
|
|
returns the number for a given name
Definition at line 108 of file Player.h. References five, four, one, three, two, and undefinedPlayerNumber. Referenced by load(). |
|
|
the team color of the player
Definition at line 121 of file Player.h. Referenced by getTeamColor(), load(), Player(), and setTeamColor(). |
|
|
the number of the player
Definition at line 124 of file Player.h. Referenced by getPlayerNumber(), load(), Player(), and setPlayerNumber(). |
|
|
the team-name of the player
Definition at line 127 of file Player.h. Referenced by getTeamName(), and load(). |
1.3.6