24 #ifndef __TOOLS_REFBOXREP_REFBOX_STATE_WRITER_H_
25 #define __TOOLS_REFBOXREP_REFBOX_STATE_WRITER_H_
27 #include "refbox_state_sender.h"
29 #include <blackboard/remote.h>
30 #include <interfaces/GameStateInterface.h>
31 #include <netcomm/worldinfo/enums.h>
46 virtual void set_score(
unsigned int score_cyan,
unsigned int score_magenta);
52 void connect(
const std::string &host);
54 unsigned int __counter;
56 std::map<fawkes::RemoteBlackBoard *, std::string> __rbbs;
57 std::map<fawkes::RemoteBlackBoard *, fawkes::GameStateInterface *> __giss;
62 unsigned int __score_cyan;
63 unsigned int __score_magenta;
virtual void set_team_goal(fawkes::worldinfo_gamestate_team_t our_team, fawkes::worldinfo_gamestate_goalcolor_t goal_color)
Set team and goal info.
virtual void set_gamestate(int game_state, fawkes::worldinfo_gamestate_team_t state_team)
Set current game state.
RefBox repeater state sender.
virtual void set_half(fawkes::worldinfo_gamestate_half_t half)
Set current half of the game time.
virtual void send()
Send worldinfo.
worldinfo_gamestate_half_t
Game time half.
RefBox repeater state writer.
virtual ~RefBoxStateBBWriter()
Destructor.
virtual void set_score(unsigned int score_cyan, unsigned int score_magenta)
Set score.
RefBoxStateBBWriter(std::vector< std::string > hosts, bool debug=false)
Constructor.
worldinfo_gamestate_team_t
Team.
worldinfo_gamestate_goalcolor_t
Goal color.