|
Fawkes API
Fawkes Development Version
|
Mid-size league refbox repeater. More...
#include <>>
Public Member Functions | |
| Msl2008RefBoxRepeater (RefBoxStateSender &rss, const char *refbox_host, unsigned short int refbox_port) | |
| Constructor. More... | |
| ~Msl2008RefBoxRepeater () | |
| 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.
| Msl2008RefBoxRepeater::Msl2008RefBoxRepeater | ( | RefBoxStateSender & | rss, |
| const char * | refbox_host, | ||
| unsigned short int | refbox_port | ||
| ) |
Constructor.
| rss | refbox state sender |
| refbox_host | refbox host |
| refbox_port | refbox port |
Definition at line 99 of file msl2008.cpp.
| Msl2008RefBoxRepeater::~Msl2008RefBoxRepeater | ( | ) |
Destructor.
Definition at line 116 of file msl2008.cpp.
References fawkes::MulticastDatagramSocket::bind(), fawkes::Socket::close(), 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(), fawkes::MulticastDatagramSocket::set_loop(), RefBoxStateSender::set_score(), fawkes::TEAM_BOTH, fawkes::TEAM_CYAN, and fawkes::TEAM_MAGENTA.
| void Msl2008RefBoxRepeater::run | ( | ) |
Run.
Reads messages from the network, processes them and calls the refbox state sender.
Definition at line 347 of file msl2008.cpp.
References fawkes::Socket::read().