クラス rcsc::CoachChangePlayerTypesCommand

command to change player type [詳細]

#include <coach_command.h>

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

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

Public メソッド

 CoachChangePlayerTypesCommand (const int unum, const int type)
 construct with one target player and type id
 CoachChangePlayerTypesCommand (const std::vector< std::pair< int, int > > &types)
 construct with one target player and type id
void add (const int unum, const int type)
 add new change_player_type pair
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 change player type

  Format:
  <- (change_player_types [(<unum> <typeid>)]+)
  Response:
  -> (ok change_player_type <unum> <typeid>)
  -> (warning cannot_sub_while_playon)
  -> (warning no_team_found)
  -> (warning no_subs_left)
  -> (error out_of_range_player_type)
  -> (warning no_such_player)
  -> (warning cannot_change_goalie)
  -> (warning max_of_that_type_on_field)
  


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

rcsc::CoachChangePlayerTypesCommand::CoachChangePlayerTypesCommand ( const int  unum,
const int  type 
)

construct with one target player and type id

引数:
unum target player's uniform number
type player type id

rcsc::CoachChangePlayerTypesCommand::CoachChangePlayerTypesCommand ( const std::vector< std::pair< int, int > > &  types  ) 

construct with one target player and type id

引数:
unum target player's uniform number
type player type id


関数

void rcsc::CoachChangePlayerTypesCommand::add ( const int  unum,
const int  type 
)

add new change_player_type pair

引数:
unum target player's uniform number
type player type id

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

get command type

戻り値:
command type Id

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

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

put command string to ostream

引数:
to reference to the output stream
戻り値:
reference to the output stream

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

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

get command name

戻り値:
command name string

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


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