23 #ifndef __TOOLS_REFBOXREP_REFBOX_STATE_SENDER_H_
24 #define __TOOLS_REFBOXREP_REFBOX_STATE_SENDER_H_
26 #include <core/threading/thread.h>
27 #include <netcomm/worldinfo/enums.h>
31 class WorldInfoTransceiver;
38 const char *key,
const char *iv,
45 virtual void set_score(
unsigned int score_cyan,
unsigned int score_magenta);
49 virtual void add_penalty(
unsigned int player,
unsigned int penalty,
50 unsigned int seconds_remaining);
59 unsigned int __timeout_usec;
76 unsigned int __score_cyan;
77 unsigned int __score_magenta;
86 unsigned int seconds_remaining;
89 std::map<unsigned int, rss_penalty_t> __penalties;
90 std::map<unsigned int, rss_penalty_t>::iterator __pit;
Class to send and receive world information.
RefBox repeater state sender.
virtual ~TimeoutThread()
Destructor.
Fawkes library namespace.
RefBoxStateSender()
Constructor.
virtual ~RefBoxStateSender()
Destructor.
Thread class encapsulation of pthreads.
virtual void set_gamestate(int game_state, fawkes::worldinfo_gamestate_team_t state_team)
Set current game state.
TimeoutThread(RefBoxStateSender *rss)
Constructor.
worldinfo_gamestate_half_t
Game time half.
virtual void add_penalty(unsigned int player, unsigned int penalty, unsigned int seconds_remaining)
Add penalty.
virtual void loop()
Code to execute in the thread.
virtual void set_team_goal(fawkes::worldinfo_gamestate_team_t our_team, fawkes::worldinfo_gamestate_goalcolor_t goal_color)
Set team and goal info.
worldinfo_gamestate_team_t
Team.
virtual void send()
Send worldinfo.
virtual void set_half(fawkes::worldinfo_gamestate_half_t half)
Set current half of the game time.
virtual void set_score(unsigned int score_cyan, unsigned int score_magenta)
Set score.
worldinfo_gamestate_goalcolor_t
Goal color.