#include <say_message_parser.h>
rcsc::BallPlayerMessageParserに対する継承グラフ
Public メソッド | |
BallPlayerMessageParser (boost::shared_ptr< AudioMemory > memory) | |
construct with audio memory | |
char | header () const |
get the header character. | |
int | parse (const int sender, const double &dir, const char *msg, const GameTime ¤t) |
virtual method which analyzes audio messages. | |
Static Public メソッド | |
static char | sheader () |
get the header character. | |
static std::size_t | slength () |
get the length of this message. |
format: "B<pos_vel_body:>" the length of message == ??
rcsc::BallPlayerMessageParser::BallPlayerMessageParser | ( | boost::shared_ptr< AudioMemory > | memory | ) | [explicit] |
construct with audio memory
memory | pointer to the memory |
static char rcsc::BallPlayerMessageParser::sheader | ( | ) | [inline, static] |
get the header character.
char rcsc::BallPlayerMessageParser::header | ( | ) | const [inline, virtual] |
static std::size_t rcsc::BallPlayerMessageParser::slength | ( | ) | [inline, static] |
get the length of this message.
int rcsc::BallPlayerMessageParser::parse | ( | const int | sender, | |
const double & | dir, | |||
const char * | msg, | |||
const GameTime & | current | |||
) | [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 |
rcsc::SayMessageParserを実装しています。