LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
|
3 players info message parser More...
#include <say_message_parser.h>
Public Member Functions | |
ThreePlayerMessageParser (std::shared_ptr< AudioMemory > memory) | |
construct with audio memory More... | |
char | header () const |
get the header character. More... | |
int | parse (const int sender, const double &dir, const char *msg, const GameTime ¤t) |
virtual method which analyzes audio messages. More... | |
![]() | |
virtual | ~SayMessageParser ()=default |
virtual destruct. do nothing. | |
virtual char | header () const =0 |
pure virtual method that returns header character. More... | |
virtual int | parse (const int sender, const double &dir, const char *msg, const GameTime ¤t)=0 |
virtual method which analyzes audio messages. More... | |
Static Public Member Functions | |
static char | sheader () |
get the header character. More... | |
static int | slength () |
get the length of this message. More... | |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< SayMessageParser > | Ptr |
pointer type alias | |
![]() | |
SayMessageParser ()=default | |
protected constructer | |
3 players info message parser
format: "R<unum_pos:3,unum_pos:3,unum_pos:3>" the length of message == 10
|
explicit |
construct with audio memory
memory | pointer to the memory |
|
inlinevirtual |
|
virtual |
virtual method which analyzes audio messages.
sender | sender's uniform number |
dir | sender's direction |
msg | raw audio message |
current | current game time |
bytes | read if success |
0 | message ID is not match. other parser should be tried. |
-1 | failed to parse |
Implements rcsc::SayMessageParser.
|
inlinestatic |
get the header character.
|
inlinestatic |
get the length of this message.