soccer_strategy.game_engine_3d.GameEngine3D
- class soccer_strategy.game_engine_3d.GameEngine3D[source]
Bases:
object
Main game engine used by the actual robot and for webot’s simulation
Methods
__init__
()Initializes the game engine information
gamestate_callback
(gameState)Callback function for gamestate information from the webot's game controller
run
()Main loop for the strategy execution
Attributes
GAMESTATE_LOOKUP
SECONDARY_STATE_LOOKUP
SECONDARY_STATE_MODE_LOOKUP
Returns this robot, of type RobotControlled3D :return: this robot, of type RobotControlled3D
- gamestate_callback(gameState: GameState)[source]
Callback function for gamestate information from the webot’s game controller
- Parameters:
gameState – Contains information about the game, whether it is playing or paused etc
- property this_robot: RobotControlled3D
Returns this robot, of type RobotControlled3D :return: this robot, of type RobotControlled3D