LIBRCSC Docs
Documentation for HELIOS's BASE LIBRCSC library for RoboCup 2D Simulation League.
|
player's tackle command More...
#include <player_command.h>
Public Member Functions | |
PlayerTackleCommand (const double &power_or_dir) | |
construct with tackle power More... | |
PlayerTackleCommand (const double &power_or_dir, const bool foul) | |
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... | |
double | tacklePowerOrDir () const |
get tackle command parameter More... | |
bool | tackleFoul () const |
![]() | |
virtual | ~PlayerBodyCommand () |
virtual destructor. 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... | |
![]() | |
virtual | ~PlayerCommand () |
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 , RECONNECT , BYE , MOVE , DASH , TURN , KICK , CATCH , TACKLE , TURN_NECK , CHANGE_VIEW , CHANGE_FOCUS , SAY , POINTTO , ATTENTIONTO , CLANG , EAR , SENSE_BODY , SCORE , COMPRESSION , DONE , ILLEGAL } |
player client command Id More... | |
![]() | |
PlayerBodyCommand () | |
default constructor is protected because this is abstract class | |
![]() | |
PlayerCommand () | |
constructor is protected because this is abstract class. | |
player's tackle command
Format: <- (tackle <power_or_dir>) <- (tackle <power_or_dir> <foul>)
|
inlineexplicit |
construct with tackle power
power_or_dir | tackle power or direction |
|
inlinevirtual |
|
inline |
get tackle command parameter
|
virtual |
put command string to ostream
to | reference to the output stream |
Implements rcsc::PlayerBodyCommand.
|
inlinevirtual |