クラス rcsc::TrainerMoveBallCommand

command to move ball [詳細]

#include <trainer_command.h>

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

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

Public メソッド

 TrainerMoveBallCommand (const double &x, const double &y)
 construct with move target point. no velocity.
 TrainerMoveBallCommand (const Vector2D &pos)
 construct with move target point. no velocity.
 TrainerMoveBallCommand (const double &x, const double &y, const double &vx, const double &vy)
 construct with move target point and ball velocity.
 TrainerMoveBallCommand (const Vector2D &pos, const Vector2D &vel)
 construct with move target point. 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 ball

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


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

rcsc::TrainerMoveBallCommand::TrainerMoveBallCommand ( const double &  x,
const double &  y 
)

construct with move target point. no velocity.

引数:
x move target x
y move target y

rcsc::TrainerMoveBallCommand::TrainerMoveBallCommand ( const Vector2D pos  )  [explicit]

construct with move target point. no velocity.

引数:
pos move target

rcsc::TrainerMoveBallCommand::TrainerMoveBallCommand ( const double &  x,
const double &  y,
const double &  vx,
const double &  vy 
)

construct with move target point and ball velocity.

引数:
x move target x
y move target y
vx velocity x after move
vy velocity y after move

rcsc::TrainerMoveBallCommand::TrainerMoveBallCommand ( const Vector2D pos,
const Vector2D vel 
)

construct with move target point. no velocity.

引数:
pos move target position
vel velocity after move


関数

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

get command type

戻り値:
command type Id

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

std::ostream & rcsc::TrainerMoveBallCommand::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::TrainerMoveBallCommand::name (  )  const [inline, virtual]

get command name

戻り値:
command name string

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


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