クラス rcsc::GoalieMessageParser

goalie info message parser [詳細]

#include <say_message_parser.h>

rcsc::GoalieMessageParserに対する継承グラフ

rcsc::SayMessageParser すべてのメンバ一覧

Public メソッド

 GoalieMessageParser (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 &current)
 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.

説明

goalie info message parser

format: "g<unum_pos:4>" the length of message == 5


コンストラクタとデストラクタ

rcsc::GoalieMessageParser::GoalieMessageParser ( boost::shared_ptr< AudioMemory memory  )  [explicit]

construct with audio memory

引数:
memory pointer to the memory


関数

static char rcsc::GoalieMessageParser::sheader (  )  [inline, static]

get the header character.

戻り値:
header character.

char rcsc::GoalieMessageParser::header (  )  const [inline, virtual]

get the header character.

戻り値:
header character.

rcsc::SayMessageParserを実装しています。

static std::size_t rcsc::GoalieMessageParser::slength (  )  [inline, static]

get the length of this message.

戻り値:
the length of encoded message

int rcsc::GoalieMessageParser::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を実装しています。


このクラスの説明は次のファイルから生成されました:
librcscに対してThu May 1 15:41:25 2008に生成されました。  doxygen 1.5.0