Fawkes API  Fawkes Development Version
spl_gamecontrol_t Struct Reference

SPL RefBox protocol game control struct. More...

#include <spl.h>

Public Attributes

char header [SPL_HEADER_SIZE]
 header to identify the structure More...
 
uint32_t version
 version of the data structure More...
 
uint8_t players_per_team
 The number of players on a team. More...
 
uint8_t state
 state of the game (STATE_READY, STATE_PLAYING, etc.) More...
 
uint8_t first_half
 1 = game in first half, 0 otherwise More...
 
uint8_t kick_off_team
 the next team to kick off More...
 
uint8_t secondary_state
 Extra state information - (STATE2_NORMAL, STATE2_PENALTYSHOOT, etc) More...
 
uint8_t drop_in_team
 team that caused last drop in More...
 
uint16_t drop_in_time
 number of seconds passed since the last drop in. More...
 
uint32_t secs_remaining
 estimate of number of seconds remaining in the half More...
 
spl_teaminfo_t teams [2]
 Info about the teams. More...
 
uint16_t drop_on_time
 number of seconds passed since the last drop in. More...
 

Detailed Description

SPL RefBox protocol game control struct.

Definition at line 63 of file spl.h.

Member Data Documentation

uint8_t spl_gamecontrol_t::drop_in_team

team that caused last drop in

Definition at line 71 of file spl.h.

uint16_t spl_gamecontrol_t::drop_in_time

number of seconds passed since the last drop in.

-1 before first dropin

Definition at line 72 of file spl.h.

uint16_t spl_gamecontrol_t::drop_on_time

number of seconds passed since the last drop in.

-1 before first dropin

Definition at line 62 of file spl.h.

uint8_t spl_gamecontrol_t::first_half

1 = game in first half, 0 otherwise

Definition at line 68 of file spl.h.

Referenced by SplRefBoxProcessor::~SplRefBoxProcessor(), and SplRefBoxRepeater::~SplRefBoxRepeater().

char spl_gamecontrol_t::header

header to identify the structure

Definition at line 64 of file spl.h.

Referenced by SplRefBoxProcessor::refbox_process(), SplRefBoxRepeater::run(), and SplRefBoxProcessor::run().

uint8_t spl_gamecontrol_t::kick_off_team

the next team to kick off

Definition at line 69 of file spl.h.

Referenced by SplRefBoxProcessor::~SplRefBoxProcessor(), and SplRefBoxRepeater::~SplRefBoxRepeater().

uint8_t spl_gamecontrol_t::players_per_team

The number of players on a team.

Definition at line 66 of file spl.h.

uint8_t spl_gamecontrol_t::secondary_state

Extra state information - (STATE2_NORMAL, STATE2_PENALTYSHOOT, etc)

Definition at line 70 of file spl.h.

uint32_t spl_gamecontrol_t::secs_remaining

estimate of number of seconds remaining in the half

Definition at line 73 of file spl.h.

uint8_t spl_gamecontrol_t::state

state of the game (STATE_READY, STATE_PLAYING, etc.)

state of the game (STATE_READY, STATE_PLAYING, etc)

Definition at line 67 of file spl.h.

Referenced by SplRefBoxProcessor::~SplRefBoxProcessor(), and SplRefBoxRepeater::~SplRefBoxRepeater().

spl_teaminfo_t spl_gamecontrol_t::teams

Info about the teams.

Definition at line 74 of file spl.h.

Referenced by SplRefBoxProcessor::~SplRefBoxProcessor(), and SplRefBoxRepeater::~SplRefBoxRepeater().

uint32_t spl_gamecontrol_t::version

version of the data structure

Definition at line 65 of file spl.h.

Referenced by SplRefBoxProcessor::refbox_process(), SplRefBoxRepeater::run(), and SplRefBoxProcessor::run().


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