LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Public Member Functions | List of all members
rcsc::CoachChangePlayerTypeCommand Class Reference

command to change player type More...

#include <coach_command.h>

Inheritance diagram for rcsc::CoachChangePlayerTypeCommand:
Inheritance graph
[legend]
Collaboration diagram for rcsc::CoachChangePlayerTypeCommand:
Collaboration graph
[legend]

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...
 
- Public Member Functions inherited from rcsc::CoachCommand
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

- Public Types inherited from rcsc::CoachCommand
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
 
- Protected Member Functions inherited from rcsc::CoachCommand
 CoachCommand ()
 constructor is protected because this is abstract class.
 

Detailed Description

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)

Constructor & Destructor Documentation

◆ CoachChangePlayerTypeCommand()

rcsc::CoachChangePlayerTypeCommand::CoachChangePlayerTypeCommand ( const int  unum,
const int  type 
)
inline

construct with target number and type id

Parameters
unumtarget player's uniform number
typeplayer type id

Member Function Documentation

◆ name()

std::string rcsc::CoachChangePlayerTypeCommand::name ( ) const
inlinevirtual

get command name

Returns
command name string

Implements rcsc::CoachCommand.

◆ toCommandString()

std::ostream & rcsc::CoachChangePlayerTypeCommand::toCommandString ( std::ostream &  to) const
virtual

put command string to ostream

Parameters
toreference to the output stream
Returns
reference to the output stream

Implements rcsc::CoachCommand.

◆ type()

Type rcsc::CoachChangePlayerTypeCommand::type ( ) const
inlinevirtual

get command type

Returns
command type Id

Implements rcsc::CoachCommand.


The documentation for this class was generated from the following file: