#include <GameControlData.h>
Public Types | |
| enum | Kickoff { kickoffRedTeam, kickoffBlueTeam } |
| Which team does the kickoff. More... | |
| enum | State { initial = ROBOCUP_STATE_INITIAL, ready = ROBOCUP_STATE_READY, set = ROBOCUP_STATE_SET, playing = ROBOCUP_STATE_PLAYING, penalized = ROBOCUP_STATE_PENALIZED, finished = ROBOCUP_STATE_FINISHED } |
| The game state. More... | |
| enum | Penalties { notPenalized = PENALTY_NONE, illegalDefender = PENALTY_ILLEGAL_DEFENDER, illegalDefanse = PENALTY_ILLEGAL_DEFENSE, obstruction = PENALTY_OBSTRUCTION, keeperCharge = PENALTY_KEEPER_CHARGE, playerCharge = PENALTY_FIELD_PLAYER_CHARGE, ballHolding = PENALTY_BALL_HOLDING, requestForPickup = PENALTY_REQ_FOR_PICKUP } |
| Possible penalties. More... | |
Public Member Functions | |
| GlobalGameControlData () | |
| Constructor. | |
Public Attributes | |
| enum GlobalGameControlData::Kickoff | kickoff |
| Which team does the kickoff. | |
| enum GlobalGameControlData::State | state |
| The game state. | |
| short | redScore |
| The score of the red team. | |
| short | blueScore |
| The score of the blue team. | |
| Penalties | penaltiesRedTeam [4] |
| The current penalty states of the red team. | |
| Penalties | penaltiesBlueTeam [4] |
| The current penalty states of the blue team. | |
Different from the GameControlData sent from Sony's GameManager (which is specific for one robot) this class contains the game state for all robots.
Definition at line 26 of file GameControlData.h.
|
|
Which team does the kickoff.
Definition at line 33 of file GameControlData.h. |
|
|
The game state.
Definition at line 36 of file GameControlData.h. |
|
|
Possible penalties.
Definition at line 51 of file GameControlData.h. |
|
|
Constructor.
Definition at line 13 of file GameControlData.cpp. References notPenalized, penaltiesBlueTeam, and penaltiesRedTeam. |
|
|
Which team does the kickoff.
Referenced by GameControlData::translateFromGlobalGameControlData(). |
|
|
The game state.
Referenced by GameControlData::translateFromGlobalGameControlData(). |
|
|
The score of the red team.
Definition at line 45 of file GameControlData.h. Referenced by GameControlData::translateFromGlobalGameControlData(). |
|
|
The score of the blue team.
Definition at line 48 of file GameControlData.h. Referenced by GameControlData::translateFromGlobalGameControlData(). |
|
|
The current penalty states of the red team.
Definition at line 63 of file GameControlData.h. Referenced by GlobalGameControlData(), and GameControlData::translateFromGlobalGameControlData(). |
|
|
The current penalty states of the blue team.
Definition at line 66 of file GameControlData.h. Referenced by GlobalGameControlData(), and GameControlData::translateFromGlobalGameControlData(). |
1.3.6