command to move ball
More...
#include <trainer_command.h>
|
Public Types inherited from rcsc::TrainerCommand |
enum | Type {
INIT
, CHECK_BALL
, LOOK
, TEAM_NAMES
,
EAR
, EYE
, START
, CHANGE_MODE
,
MOVE
, RECOVER
, CHANGE_PLAYER_TYPE
, SAY
,
COMPRESSION
, DONE
, ILLEGAL
} |
| trainer command type Id More...
|
|
Protected Member Functions inherited from rcsc::TrainerCommand |
| TrainerCommand () |
| constructor is protected because this is abstract class.
|
|
command to move ball
Format:
<- (move (ball) <x> <y>[ <angle> <vx> <vy>])
Response:
-> (ok move)
-> (error illegal_command_form)
◆ TrainerMoveBallCommand() [1/4]
rcsc::TrainerMoveBallCommand::TrainerMoveBallCommand |
( |
const double & |
x, |
|
|
const double & |
y |
|
) |
| |
construct with move target point. no velocity.
- Parameters
-
x | move target x |
y | move target y |
◆ TrainerMoveBallCommand() [2/4]
rcsc::TrainerMoveBallCommand::TrainerMoveBallCommand |
( |
const Vector2D & |
pos | ) |
|
|
explicit |
construct with move target point. no velocity.
- Parameters
-
◆ TrainerMoveBallCommand() [3/4]
rcsc::TrainerMoveBallCommand::TrainerMoveBallCommand |
( |
const double & |
x, |
|
|
const double & |
y, |
|
|
const double & |
vx, |
|
|
const double & |
vy |
|
) |
| |
construct with move target point and ball velocity.
- Parameters
-
x | move target x |
y | move target y |
vx | velocity x after move |
vy | velocity y after move |
◆ TrainerMoveBallCommand() [4/4]
rcsc::TrainerMoveBallCommand::TrainerMoveBallCommand |
( |
const Vector2D & |
pos, |
|
|
const Vector2D & |
vel |
|
) |
| |
construct with move target point. no velocity.
- Parameters
-
pos | move target position |
vel | velocity after move |
◆ name()
std::string rcsc::TrainerMoveBallCommand::name |
( |
| ) |
const |
|
inlinevirtual |
◆ toCommandString()
std::ostream & rcsc::TrainerMoveBallCommand::toCommandString |
( |
std::ostream & |
to | ) |
const |
|
virtual |
put command string to ostream
- Parameters
-
to | referent to the output stream |
- Returns
- referenct to the output stream
Implements rcsc::TrainerCommand.
◆ type()
Type rcsc::TrainerMoveBallCommand::type |
( |
| ) |
const |
|
inlinevirtual |
The documentation for this class was generated from the following file: