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::PlayerCatchCommand Class Reference

goalie's catch command More...

#include <player_command.h>

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

Public Member Functions

 PlayerCatchCommand (const double &rel_dir)
 construct with catch direction 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...
 
double catchDir () const
 get catch command parameter More...
 
- Public Member Functions inherited from rcsc::PlayerBodyCommand
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...
 
- Public Member Functions inherited from rcsc::PlayerCommand
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

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

Detailed Description

goalie's catch command

Format:
<- (catch <dir>)

Constructor & Destructor Documentation

◆ PlayerCatchCommand()

rcsc::PlayerCatchCommand::PlayerCatchCommand ( const double &  rel_dir)
inlineexplicit

construct with catch direction

Parameters
rel_dircatch direction relative to body angle

Member Function Documentation

◆ catchDir()

double rcsc::PlayerCatchCommand::catchDir ( ) const
inline

get catch command parameter

Returns
catch direction

◆ name()

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

get command name

Returns
command name string

Implements rcsc::PlayerBodyCommand.

◆ toCommandString()

std::ostream & rcsc::PlayerCatchCommand::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::PlayerBodyCommand.

◆ type()

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

get command type

Returns
command type Id

Implements rcsc::PlayerBodyCommand.


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