Fawkes API  Fawkes Development Version
fawkes::worldinfo_gamestate_message_t Struct Reference

Game state message. More...

#include <messages.h>

Public Attributes

uint32_t game_state: 4
 Current game state, can be freely chosen, worldinfo_gamestate_t provides recommended values for soccer games. More...
 
uint32_t state_team: 2
 Team the game state references. More...
 
uint32_t score_cyan: 8
 Score of team cyan. More...
 
uint32_t score_magenta: 8
 Score of team magenta. More...
 
uint32_t our_team: 2
 Our team color. More...
 
uint32_t our_goal_color: 1
 Our own goal color. More...
 
uint32_t half: 1
 Game time half. More...
 
uint32_t reserved: 6
 Reserved for future use. More...
 

Detailed Description

Game state message.

This message is sent by the refbox repeater to indicate the current game state.

Definition at line 228 of file messages.h.

Member Data Documentation

uint32_t fawkes::worldinfo_gamestate_message_t::game_state

Current game state, can be freely chosen, worldinfo_gamestate_t provides recommended values for soccer games.

Definition at line 229 of file messages.h.

Referenced by fawkes::WorldInfoTransceiver::recv(), and fawkes::WorldInfoTransceiver::set_gamestate().

uint32_t fawkes::worldinfo_gamestate_message_t::half

Game time half.

Definition at line 237 of file messages.h.

Referenced by fawkes::WorldInfoTransceiver::recv(), and fawkes::WorldInfoTransceiver::set_half().

uint32_t fawkes::worldinfo_gamestate_message_t::our_goal_color

Our own goal color.

Definition at line 236 of file messages.h.

Referenced by fawkes::WorldInfoTransceiver::recv(), and fawkes::WorldInfoTransceiver::set_team_goal().

uint32_t fawkes::worldinfo_gamestate_message_t::our_team

Our team color.

Definition at line 235 of file messages.h.

Referenced by fawkes::WorldInfoTransceiver::recv(), and fawkes::WorldInfoTransceiver::set_team_goal().

uint32_t fawkes::worldinfo_gamestate_message_t::reserved

Reserved for future use.

Definition at line 238 of file messages.h.

uint32_t fawkes::worldinfo_gamestate_message_t::score_cyan

Score of team cyan.

Definition at line 233 of file messages.h.

Referenced by fawkes::WorldInfoTransceiver::recv(), and fawkes::WorldInfoTransceiver::set_score().

uint32_t fawkes::worldinfo_gamestate_message_t::score_magenta

Score of team magenta.

Definition at line 234 of file messages.h.

Referenced by fawkes::WorldInfoTransceiver::recv(), and fawkes::WorldInfoTransceiver::set_score().

uint32_t fawkes::worldinfo_gamestate_message_t::state_team

Team the game state references.

Definition at line 232 of file messages.h.

Referenced by fawkes::WorldInfoTransceiver::recv(), and fawkes::WorldInfoTransceiver::set_gamestate().


The documentation for this struct was generated from the following file: