LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
|
command to change player type More...
#include <coach_command.h>
Public Member Functions | |
CoachChangePlayerTypesCommand (const int unum, const int type) | |
construct with one target player and type id More... | |
CoachChangePlayerTypesCommand (const std::vector< std::pair< int, int > > &types) | |
construct with one target player and type id More... | |
void | add (const int unum, const int type) |
add new change_player_type pair More... | |
Type | type () const |
get command type More... | |
std::ostream & | toCommandString (std::ostream &to) const |
put command string to ostream More... | |
std::string | name () const |
get command name More... | |
![]() | |
virtual | ~CoachCommand () |
virtual destructor, but nothing to do | |
virtual Type | type () const =0 |
get command type (pure virtual) More... | |
virtual std::ostream & | toCommandString (std::ostream &to) const =0 |
put command string to ostream (pure virtual) More... | |
virtual std::string | name () const =0 |
get command name (pure virtual) More... | |
Additional Inherited Members | |
![]() | |
enum | Type { INIT , BYE , CHECK_BALL , LOOK , TEAM_NAMES , EYE , CHANGE_PLAYER_TYPE , CHANGE_PLAYER_TYPES , CLANG_FREEFORM , TEAM_GRAPHIC , COMPRESSION , DONE , ILLEGAL } |
online coach command type Id | |
![]() | |
CoachCommand () | |
constructor is protected because this is abstract class. | |
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
types | container of the pair of unum and 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 |
|
inlinevirtual |
|
virtual |
put command string to ostream
to | reference to the output stream |
Implements rcsc::CoachCommand.
|
inlinevirtual |