Fawkes API
Fawkes Development Version
|
Mid-size league refbox repeater. More...
#include <>>
Public Member Functions | |
Msl2010RefBoxRepeater (RefBoxStateSender &rss, const char *refbox_host, unsigned short int refbox_port, const bool use_multicast=true) | |
Constructor. More... | |
~Msl2010RefBoxRepeater () | |
Destructor. More... | |
void | run () |
Run. More... | |
Mid-size league refbox repeater.
This class will communicate with the mid-size league refbox and derive matching game states from the communiation stream and send this via the world info.
Msl2010RefBoxRepeater::Msl2010RefBoxRepeater | ( | RefBoxStateSender & | rss, |
const char * | refbox_host, | ||
unsigned short int | refbox_port, | ||
const bool | use_multicast = true |
||
) |
Constructor.
rss | refbox state sender |
refbox_host | refbox host |
refbox_port | refbox port |
use_multicast | use multicast connection (true by default) |
Definition at line 104 of file msl2010.cpp.
Msl2010RefBoxRepeater::~Msl2010RefBoxRepeater | ( | ) |
Destructor.
Definition at line 124 of file msl2010.cpp.
References fawkes::Socket::available(), fawkes::Socket::close(), fawkes::Socket::connect(), fawkes::GS_CORNER_KICK, fawkes::GS_DROP_BALL, fawkes::GS_FREE_KICK, fawkes::GS_FROZEN, fawkes::GS_GOAL_KICK, fawkes::GS_HALF_TIME, fawkes::GS_KICK_OFF, fawkes::GS_PENALTY, fawkes::GS_PLAY, fawkes::GS_THROW_IN, fawkes::HALF_FIRST, fawkes::HALF_SECOND, RefBoxStateSender::send(), RefBoxStateSender::set_gamestate(), RefBoxStateSender::set_half(), RefBoxStateSender::set_score(), fawkes::TEAM_BOTH, fawkes::TEAM_CYAN, fawkes::TEAM_MAGENTA, and fawkes::Exception::what().
void Msl2010RefBoxRepeater::run | ( | ) |
Run.
Reads messages from the network, processes them and calls the refbox state sender.
Definition at line 384 of file msl2010.cpp.
References fawkes::Socket::read().