Fawkes API  Fawkes Development Version
SplRefBoxRepeater Class Reference

SPL league refbox repeater. More...

#include <>>

Public Member Functions

 SplRefBoxRepeater (RefBoxStateSender &rss, const char *broadcast_ip, unsigned short int broadcast_port, fawkes::worldinfo_gamestate_team_t our_team, fawkes::worldinfo_gamestate_goalcolor_t our_goal)
 Constructor. More...
 
 ~SplRefBoxRepeater ()
 Destructor. More...
 
void run ()
 Run. More...
 

Detailed Description

SPL league refbox repeater.

This class will listen to SPL refbox commands and derive matching game states from the communication stream and send this via the world info.

Author
Tim Niemueller

Definition at line 68 of file spl.h.

Constructor & Destructor Documentation

SplRefBoxRepeater::SplRefBoxRepeater ( RefBoxStateSender rss,
const char *  broadcast_ip,
unsigned short int  broadcast_port,
fawkes::worldinfo_gamestate_team_t  our_team,
fawkes::worldinfo_gamestate_goalcolor_t  our_goal 
)

Constructor.

Parameters
rssrefbox state sender
broadcast_ipBroadcast IP
broadcast_portBroadcast port
our_teamour initial team
our_goalour initial goal

Definition at line 76 of file spl.cpp.

References fawkes::Socket::bind().

Member Function Documentation

void SplRefBoxRepeater::run ( )

Run.

Reads messages from the network, processes them and calls the refbox state sender.

Definition at line 155 of file spl.cpp.

References spl_gamecontrol_t::header, fawkes::Socket::recv(), and spl_gamecontrol_t::version.


The documentation for this class was generated from the following files: