#include <GameControlData.h>
Public Member Functions | |
GameControlData () | |
Constructor. | |
void | translateFromGlobalGameControlData (const GlobalGameControlData &globalGameControlData, Player &player) |
Translates a GlobalGameControlData to GameControlData. | |
bool | operator== (const GameControlData &other) |
the == operator | |
bool | operator!= (const GameControlData &other) |
the != operator | |
Static Public Member Functions | |
const char * | getStateName (RState state) |
returns the name of the state | |
const char * | getKickoffName (RKickOff kickoff) |
returns the name for the variable kickoff | |
const char * | getTeamColorName (RTeamColor teamColor) |
returns the name of the team color | |
const char * | getPenaltyName (RPenalty penalty) |
returns the name of the current penalty | |
Public Attributes | |
RoboCupGameControlData | data |
an instance of RoboCupGameControlData | |
unsigned long | timeStamp |
The timestamp when the last request was received. |
Definition at line 92 of file GameControlData.h.
|
Constructor.
Definition at line 35 of file GameControlData.cpp. References getPlayer(), and Player::getTeamColor(). |
Here is the call graph for this function:
|
returns the name of the state
Definition at line 110 of file GameControlData.h. |
|
returns the name for the variable kickoff
Definition at line 125 of file GameControlData.h. |
|
returns the name of the team color
Definition at line 137 of file GameControlData.h. |
|
returns the name of the current penalty
Definition at line 148 of file GameControlData.h. |
|
Translates a GlobalGameControlData to GameControlData.
Definition at line 53 of file GameControlData.cpp. References GlobalGameControlData::blueScore, SystemCall::getCurrentSystemTime(), Player::getPlayerNumber(), Player::getTeamColor(), GlobalGameControlData::kickoff, GlobalGameControlData::penaltiesBlueTeam, GlobalGameControlData::penaltiesRedTeam, GlobalGameControlData::redScore, and GlobalGameControlData::state. |
Here is the call graph for this function:
|
the == operator
Definition at line 100 of file GameControlData.cpp. References data. |
|
the != operator
Definition at line 176 of file GameControlData.h. |
|
an instance of RoboCupGameControlData
Definition at line 101 of file GameControlData.h. Referenced by RoboCupGameManagerSymbols::getKickoff(), RoboCupGameManagerSymbols::getOpponentScore(), RoboCupGameManagerSymbols::getOwnScore(), RoboCupGameManagerSymbols::getState(), operator<<(), operator==(), operator>>(), DefaultOptionRating::rateOptions(), GT2004ConfigurationSymbols::update(), and RoboCupGameManagerSymbols::update(). |
|
The timestamp when the last request was received. Note that this value is set in the In streaming operator. Definition at line 107 of file GameControlData.h. Referenced by RoboCupGameManagerSymbols::getTimeSinceLastMessage(), and operator>>(). |