#include <GameControlData.h>
Public Types | |
| enum | State { initial = STATE_INITIAL, ready = STATE_READY, set = STATE_SET, playing = STATE_PLAYING, finished = STATE_FINISHED } |
| enum | Penalties { notPenalized = PENALTY_NONE, illegalDefender = PENALTY_ILLEGAL_DEFENDER, illegalDefense = PENALTY_ILLEGAL_DEFENSE, obstruction = PENALTY_OBSTRUCTION, goaliePushing = PENALTY_GOALIE_PUSHING, playerPushing = PENALTY_PLAYER_PUSHING, ballHolding = PENALTY_BALL_HOLDING, requestForPickup = PENALTY_REQ_FOR_PICKUP, leaving = PENALTY_LEAVING, damage = PENALTY_DAMAGE, numOfPenalties } |
| enum | KickoffTeam { undefinedTeam, ownTeam, opponentTeam } |
Public Member Functions | |
| GameControlData () | |
| Constuctor. | |
| Penalties | getPenalty (Player player=getPlayer()) const |
| returns the penalty of the player | |
| unsigned int | getOwnTeamNumber (Player player=getPlayer()) const |
| returns the number (0,1) of the data.teams -array the robot belongs to. | |
| const TeamInfo & | getOwnTeam (Player player=getPlayer()) const |
| returns a reference to the teamInfo of the team of the Player | |
| TeamInfo & | getOwnTeam (Player player=getPlayer()) |
| unsigned int | getOpponentTeamNumber (Player player=getPlayer()) const |
| returns the number (0,1) of the data.teams -array of the robots opponents. | |
| const RobotInfo & | getRobot (Player player=getPlayer()) const |
| returns the robot-info for a player * | |
| RobotInfo & | getRobot (Player player=getPlayer()) |
| const TeamInfo & | getOpponentTeam (Player player=getPlayer()) const |
| returns a reference to the teamInfo of the team of the robots opponents | |
| TeamInfo & | getOpponentTeam (Player Player=getPlayer()) |
| KickoffTeam | getKickoffTeam (Player player=getPlayer()) const |
| returns the Kickoff-Team as own/opponent | |
| const TeamInfo & | getTeamByNumber (int number) const |
| returns the Team by the GameControlerTeamNumber) | |
| TeamInfo & | getTeamByNumber (int number) |
| const TeamInfo & | getTeamByColor (int color) const |
| TeamInfo & | getTeamByColor (int color) |
| bool | operator== (const GameControlData &other) |
| the == operator | |
| bool | operator!= (const GameControlData &other) |
| the != operator | |
Static Public Member Functions | |
| const char * | getStateName (State state) |
| returns the name of the state | |
| const char * | getKickoffTeamName (KickoffTeam kickoffTeam) |
| returns the name for the variable kickoff | |
| const char * | getPenaltyName (Penalties penalty) |
| returns the name of the current penalty | |
Public Attributes | |
| RoboCupGameControlData | data |
| The data send by the game-controller. | |
| bool | switchOff |
| unsigned long | timeStamp |
| The timestamp when the last request was received. | |
Definition at line 25 of file GameControlData.h.
|
|
Definition at line 28 of file GameControlData.h. |
|
|
Definition at line 37 of file GameControlData.h. Referenced by getPenalty(). |
|
|
Definition at line 52 of file GameControlData.h. Referenced by getKickoffTeam(). |
|
|
Constuctor.
Definition at line 14 of file GameControlData.cpp. References notPenalized. |
|
|
returns the name of the state
Definition at line 143 of file GameControlData.cpp. |
|
|
returns the name for the variable kickoff
Definition at line 157 of file GameControlData.cpp. References opponentTeam, and ownTeam. |
|
|
returns the name of the current penalty
Definition at line 127 of file GameControlData.cpp. References ballHolding, goaliePushing, illegalDefender, illegalDefense, notPenalized, obstruction, playerPushing, and requestForPickup. |
|
|
returns the penalty of the player
Definition at line 82 of file GameControlData.cpp. References getRobot(), and Penalties. |
Here is the call graph for this function:

|
|
returns the number (0,1) of the data.teams -array the robot belongs to.
Definition at line 39 of file GameControlData.cpp. References Player::getGameControllerTeamNumber(), and uint32. Referenced by getKickoffTeam(), and getOwnTeam(). |
Here is the call graph for this function:

|
|
returns a reference to the teamInfo of the team of the Player
Definition at line 50 of file GameControlData.cpp. References getOwnTeamNumber(). Referenced by RoboCupGameManagerSymbols::getOwnScore(), getRobot(), and RoboCupGameManagerSymbols::update(). |
Here is the call graph for this function:

|
|
Definition at line 55 of file GameControlData.cpp. References getOwnTeamNumber(). |
Here is the call graph for this function:

|
|
returns the number (0,1) of the data.teams -array of the robots opponents.
Definition at line 45 of file GameControlData.cpp. References Player::getGameControllerTeamNumber(), and uint32. Referenced by getOpponentTeam(). |
Here is the call graph for this function:

|
|
returns the robot-info for a player *
Definition at line 88 of file GameControlData.cpp. References getOwnTeam(), and Player::getPlayerNumber(). Referenced by GT2005TeamBallLocator::execute(), GT2005SelfLocator::execute(), getPenalty(), and RoboCupGameManagerSymbols::getState(). |
Here is the call graph for this function:

|
|
Definition at line 93 of file GameControlData.cpp. References getOwnTeam(), and Player::getPlayerNumber(). |
Here is the call graph for this function:

|
|
returns a reference to the teamInfo of the team of the robots opponents
Definition at line 60 of file GameControlData.cpp. References getOpponentTeamNumber(). Referenced by RoboCupGameManagerSymbols::getOpponentScore(), GT2005ConfigurationSymbols::update(), and RoboCupGameManagerSymbols::update(). |
Here is the call graph for this function:

|
|
Definition at line 65 of file GameControlData.cpp. References getOpponentTeamNumber(). |
Here is the call graph for this function:

|
|
returns the Kickoff-Team as own/opponent
Definition at line 70 of file GameControlData.cpp. References getOwnTeamNumber(), KickoffTeam, opponentTeam, and ownTeam. Referenced by RoboCupGameManagerSymbols::getKickoff(), and GT2005ConfigurationSymbols::getTimeToReachKickoffPose(). |
Here is the call graph for this function:

|
|
returns the Team by the GameControlerTeamNumber)
Definition at line 98 of file GameControlData.cpp. References uint32. |
|
|
Definition at line 104 of file GameControlData.cpp. References uint32. |
|
|
Definition at line 110 of file GameControlData.cpp. References uint32. |
|
|
Definition at line 116 of file GameControlData.cpp. References uint32. |
|
|
the == operator
Definition at line 122 of file GameControlData.cpp. References data. |
|
|
the != operator
Definition at line 108 of file GameControlData.h. |
|
|
The data send by the game-controller.
Definition at line 116 of file GameControlData.h. Referenced by GT2005ConfigurationSymbols::computeKickoffRole(), GT2005BallLocator::execute(), RoboCupGameManagerSymbols::getState(), operator<<(), operator==(), operator>>(), and RoboCupGameManagerSymbols::update(). |
|
|
Definition at line 118 of file GameControlData.h. Referenced by operator>>(). |
|
|
The timestamp when the last request was received. Note that this value is set in the In streaming operator. Definition at line 124 of file GameControlData.h. Referenced by RoboCupGameManagerSymbols::getTimeSinceLastMessage(), operator<<(), and operator>>(). |
1.3.6