Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

GlobalGameControlData Class Reference

Specifies the game state for two teams of four robots. More...

#include <GameControlData.h>

List of all members.

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.


Detailed Description

Specifies the game state for two teams of four robots.

Different from the GameControlData sent from Sony's GameManager (which is specific for one robot) this class contains the game state for all robots.

Author:
Martin Lötzsch

Definition at line 26 of file GameControlData.h.


Member Enumeration Documentation

enum GlobalGameControlData::Kickoff
 

Which team does the kickoff.

Enumeration values:
kickoffRedTeam 
kickoffBlueTeam 

Definition at line 33 of file GameControlData.h.

enum GlobalGameControlData::State
 

The game state.

Enumeration values:
initial 
ready 
set 
playing 
penalized 
finished 

Definition at line 36 of file GameControlData.h.

enum GlobalGameControlData::Penalties
 

Possible penalties.

Enumeration values:
notPenalized 
illegalDefender 
illegalDefanse 
obstruction 
keeperCharge 
playerCharge 
ballHolding 
requestForPickup 

Definition at line 51 of file GameControlData.h.


Constructor & Destructor Documentation

GlobalGameControlData::GlobalGameControlData  ) 
 

Constructor.

Definition at line 13 of file GameControlData.cpp.

References notPenalized, penaltiesBlueTeam, and penaltiesRedTeam.


Member Data Documentation

enum GlobalGameControlData::Kickoff GlobalGameControlData::kickoff
 

Which team does the kickoff.

Referenced by GameControlData::translateFromGlobalGameControlData().

enum GlobalGameControlData::State GlobalGameControlData::state
 

The game state.

Referenced by GameControlData::translateFromGlobalGameControlData().

short GlobalGameControlData::redScore
 

The score of the red team.

Definition at line 45 of file GameControlData.h.

Referenced by GameControlData::translateFromGlobalGameControlData().

short GlobalGameControlData::blueScore
 

The score of the blue team.

Definition at line 48 of file GameControlData.h.

Referenced by GameControlData::translateFromGlobalGameControlData().

Penalties GlobalGameControlData::penaltiesRedTeam[4]
 

The current penalty states of the red team.

Definition at line 63 of file GameControlData.h.

Referenced by GlobalGameControlData(), and GameControlData::translateFromGlobalGameControlData().

Penalties GlobalGameControlData::penaltiesBlueTeam[4]
 

The current penalty states of the blue team.

Definition at line 66 of file GameControlData.h.

Referenced by GlobalGameControlData(), and GameControlData::translateFromGlobalGameControlData().


The documentation for this class was generated from the following files:
Generated on Thu Sep 23 20:06:33 2004 for GT2004 by doxygen 1.3.6