クラス rcsc::BallPlayerMessage

ball & player info message encoder [詳細]

#include <say_message_builder.h>

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

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

Public メソッド

 BallPlayerMessage (const Vector2D &ball_pos, const Vector2D &ball_vel, const int unum, const Vector2D &player_pos, const AngleDeg &player_body)
 construct with raw information
char header () const
 get the header character of this message
std::size_t length () const
 get the length of this message
bool toStr (std::string &to) const
 append this info to the audio message

Static Public メソッド

static std::size_t slength ()
 get the length of this message.

説明

ball & player info message encoder

format: "1<bpos_bvel_unum_ppos_pbody:9>" the length of message == 10


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

rcsc::BallPlayerMessage::BallPlayerMessage ( const Vector2D ball_pos,
const Vector2D ball_vel,
const int  unum,
const Vector2D player_pos,
const AngleDeg player_body 
) [inline]

construct with raw information

引数:
ball_pos ball position
ball_vel ball velocity
unum player's unum
player_pos goalie's global position
player_body goalie's body angle


関数

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

get the header character of this message

戻り値:
header character of this message

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

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

get the length of this message.

戻り値:
the length of encoded message

std::size_t rcsc::BallPlayerMessage::length (  )  const [inline, virtual]

get the length of this message

戻り値:
the length of encoded message

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

bool rcsc::BallPlayerMessage::toStr ( std::string &  to  )  const [virtual]

append this info to the audio message

引数:
to reference to the message string instance
戻り値:
result status of encoding

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


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