クラス rcsc::TrainerMovePlayerCommand

command to move player [詳細]

#include <trainer_command.h>

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

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

Public メソッド

 TrainerMovePlayerCommand (const std::string &team_name, const int unum, const double &x, const double &y)
 construct with xy value, no angle, no velocity
 TrainerMovePlayerCommand (const std::string &team_name, const int unum, const Vector2D &pos)
 construct with xy value, no angle, no velocity
 TrainerMovePlayerCommand (const std::string &team_name, const int unum, const double &x, const double &y, const AngleDeg &angle)
 construct with xy value, no angle, no velocity
 TrainerMovePlayerCommand (const std::string &team_name, const int unum, const Vector2D &pos, const AngleDeg &angle)
 construct with xy value, no angle, no velocity
 TrainerMovePlayerCommand (const std::string &team_name, const int unum, const double &x, const double &y, const AngleDeg &angle, const double &vx, const double &vy)
 construct with xy value, no angle, no velocity
 TrainerMovePlayerCommand (const std::string &team_name, const int unum, const Vector2D &pos, const AngleDeg &angle, const double &vx, const double &vy)
 construct with xy value, no angle, no velocity
 TrainerMovePlayerCommand (const std::string &team_name, const int unum, const Vector2D &pos, const AngleDeg &angle, const Vector2D &vel)
 construct with xy value, no angle, no velocity
Type type () const
 get command type
std::ostream & toStr (std::ostream &to) const
 put command string to ostream
std::string name () const
 get command name

説明

command to move player

  Format:
  <- (move (player <teamname> <unum>) <x> <y> [<angle> [<vx> <vy>]])
  Response:
  -> (ok move)
  -> (error illegal_command_form)
  


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

rcsc::TrainerMovePlayerCommand::TrainerMovePlayerCommand ( const std::string &  team_name,
const int  unum,
const double &  x,
const double &  y 
)

construct with xy value, no angle, no velocity

引数:
team_name target player's team name
unum target player's uniform number
x target point x
y target point y

rcsc::TrainerMovePlayerCommand::TrainerMovePlayerCommand ( const std::string &  team_name,
const int  unum,
const Vector2D pos 
)

construct with xy value, no angle, no velocity

引数:
team_name target player's team name
unum target player's uniform number
pos target point

rcsc::TrainerMovePlayerCommand::TrainerMovePlayerCommand ( const std::string &  team_name,
const int  unum,
const double &  x,
const double &  y,
const AngleDeg angle 
)

construct with xy value, no angle, no velocity

引数:
team_name target player's team name
unum target player's uniform number
x target point x
y target point y
angle player's body angle after move

rcsc::TrainerMovePlayerCommand::TrainerMovePlayerCommand ( const std::string &  team_name,
const int  unum,
const Vector2D pos,
const AngleDeg angle 
)

construct with xy value, no angle, no velocity

引数:
team_name target player's team name
unum target player's uniform number
pos target point
angle player's body angle after move

rcsc::TrainerMovePlayerCommand::TrainerMovePlayerCommand ( const std::string &  team_name,
const int  unum,
const double &  x,
const double &  y,
const AngleDeg angle,
const double &  vx,
const double &  vy 
)

construct with xy value, no angle, no velocity

引数:
team_name target player's team name
unum target player's uniform number
x target point x
y target point y
angle player's body angle after move
vx player's velocity x after move
vy player's velocity y after move

rcsc::TrainerMovePlayerCommand::TrainerMovePlayerCommand ( const std::string &  team_name,
const int  unum,
const Vector2D pos,
const AngleDeg angle,
const double &  vx,
const double &  vy 
)

construct with xy value, no angle, no velocity

引数:
team_name target player's team name
unum target player's uniform number
pos target point
angle player's body angle after move
vx player's velocity x after move
vy player's velocity y after move

rcsc::TrainerMovePlayerCommand::TrainerMovePlayerCommand ( const std::string &  team_name,
const int  unum,
const Vector2D pos,
const AngleDeg angle,
const Vector2D vel 
)

construct with xy value, no angle, no velocity

引数:
team_name target player's team name
unum target player's uniform number
pos target point
angle player's body angle after move
vel player's velocity after move


関数

Type rcsc::TrainerMovePlayerCommand::type (  )  const [inline, virtual]

get command type

戻り値:
command type Id

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

std::ostream & rcsc::TrainerMovePlayerCommand::toStr ( std::ostream &  to  )  const [virtual]

put command string to ostream

引数:
to referent to the output stream
戻り値:
referenct to the output stream

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

std::string rcsc::TrainerMovePlayerCommand::name (  )  const [inline, virtual]

get command name

戻り値:
command name string

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


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