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 | |
CoachChangePlayerTypeCommand (const int unum, const int type) | |
construct with target number and type id 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_type <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)
|
inline |
construct with target number and type id
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 |