32#ifndef RCSC_COACH_COMMAND_H
33#define RCSC_COACH_COMMAND_H
143 std::string M_team_name;
145 std::string M_coach_name;
154 const double & version,
155 const std::string & coach_name =
"" );
179 return std::string(
"init" );
226 return std::string(
"bye" );
277 return std::string(
"check_ball" );
326 return std::string(
"look" );
375 return std::string(
"team_names" );
427 return std::string(
"eye" );
473 return CHANGE_PLAYER_TYPE;
489 return std::string(
"change_player_type" );
517 std::vector< std::pair< int, int > > M_types;
548 return CHANGE_PLAYER_TYPES;
564 return std::string(
"change_player_types" );
594 const double M_version;
596 const std::string & M_message;
608 const std::string & message )
620 return CLANG_FREEFORM;
636 return std::string(
"freeform" );
661 std::vector< std::string > M_xpm_lines;
671 const unsigned int y,
672 const std::vector< std::string > & xpm_lines );
696 return std::string(
"team_graphic" );
749 return std::string(
"compression" );
797 return std::string(
"done" );
command to disconnect
Definition: coach_command.h:194
std::ostream & toCommandString(std::ostream &to) const
put command string to ostream
CoachByeCommand()
constructor. nothing to do
Definition: coach_command.h:201
Type type() const
get command type
Definition: coach_command.h:208
std::string name() const
get command name
Definition: coach_command.h:224
command to change player type
Definition: coach_command.h:451
CoachChangePlayerTypeCommand(const int unum, const int type)
construct with target number and type id
Definition: coach_command.h:461
Type type() const
get command type
Definition: coach_command.h:471
std::string name() const
get command name
Definition: coach_command.h:487
std::ostream & toCommandString(std::ostream &to) const
put command string to ostream
command to change player type
Definition: coach_command.h:514
void add(const int unum, const int type)
add new change_player_type pair
CoachChangePlayerTypesCommand(const int unum, const int type)
construct with one target player and type id
std::string name() const
get command name
Definition: coach_command.h:562
CoachChangePlayerTypesCommand(const std::vector< std::pair< int, int > > &types)
construct with one target player and type id
Type type() const
get command type
Definition: coach_command.h:546
std::ostream & toCommandString(std::ostream &to) const
put command string to ostream
command to require ball status
Definition: coach_command.h:245
CoachCheckBallCommand()
constructor. nothing to do
Definition: coach_command.h:252
std::ostream & toCommandString(std::ostream &to) const
put command string to ostream
Type type() const
get command type
Definition: coach_command.h:259
std::string name() const
get command name
Definition: coach_command.h:275
abstract coach command class
Definition: coach_command.h:48
virtual ~CoachCommand()
virtual destructor, but nothing to do
Definition: coach_command.h:99
virtual Type type() const =0
get command type (pure virtual)
virtual std::ostream & toCommandString(std::ostream &to) const =0
put command string to ostream (pure virtual)
Type
online coach command type Id
Definition: coach_command.h:53
CoachCommand()
constructor is protected because this is abstract class.
Definition: coach_command.h:91
virtual std::string name() const =0
get command name (pure virtual)
command to set message compression level
Definition: coach_command.h:715
CoachCompressionCommand(const int level)
construct with compression level
Definition: coach_command.h:723
Type type() const
get command type
Definition: coach_command.h:731
std::ostream & toCommandString(std::ostream &to) const
put command string to ostream
std::string name() const
get command name
Definition: coach_command.h:747
command to send done command for (think) message in synch_mode
Definition: coach_command.h:765
CoachDoneCommand()
constructor. nothing to do
Definition: coach_command.h:772
std::ostream & toCommandString(std::ostream &to) const
put command string to ostream
Type type() const
get command type
Definition: coach_command.h:779
std::string name() const
get command name
Definition: coach_command.h:795
command to enable/disable coach's eye
Definition: coach_command.h:392
std::string name() const
get command name
Definition: coach_command.h:425
CoachEyeCommand(bool on)
construct with eye mode switch
Definition: coach_command.h:401
std::ostream & toCommandString(std::ostream &to) const
put command string to ostream
Type type() const
get command type
Definition: coach_command.h:409
initial connection command for coach
Definition: coach_command.h:141
std::ostream & toCommandString(std::ostream &to) const
put command string to ostream
std::string name() const
get command name
Definition: coach_command.h:177
CoachInitCommand(const std::string &team_name, const double &version, const std::string &coach_name="")
construct with init parameters
Type type() const
get command type
Definition: coach_command.h:161
commad to require field status
Definition: coach_command.h:294
std::string name() const
get command name
Definition: coach_command.h:324
CoachLookCommand()
constructor. nothing to do
Definition: coach_command.h:301
Type type() const
get command type
Definition: coach_command.h:308
std::ostream & toCommandString(std::ostream &to) const
put command string to ostream
command to send a tile of xpm team graphic
Definition: coach_command.h:657
CoachTeamGraphicCommand(const unsigned int x, const unsigned int y, const std::vector< std::string > &xpm_lines)
construct with xpm string and its coordinate.
std::string name() const
get command name
Definition: coach_command.h:694
Type type() const
get command type
Definition: coach_command.h:678
std::ostream & toCommandString(std::ostream &to) const
put command string to ostream
command to require team names
Definition: coach_command.h:343
std::string name() const
get command name
Definition: coach_command.h:373
CoachTeamNamesCommand()
constructor. nothing to do
Definition: coach_command.h:350
std::ostream & toCommandString(std::ostream &to) const
put command string to ostream
Type type() const
get command type
Definition: coach_command.h:357
the type definition set for the RCSSServer2D
const char * version()
get the package version number string.