Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RS::TrainerMoveObjectCommand Class Reference

Class used to represent the trainer command (move OBJECT X Y [VDIR [VEL_X VEL_Y]]). More...

Inheritance diagram for RS::TrainerMoveObjectCommand:

Inheritance graph
[legend]
Collaboration diagram for RS::TrainerMoveObjectCommand:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TrainerMoveObjectCommand (Float x, Float y)
 Create a move ball to x y trainer command.

 TrainerMoveObjectCommand (const Point &pos)
 Create a move ball to pos trainer command.

 TrainerMoveObjectCommand (Float x, Float y, Float vel_x, Float vel_y)
 Create a move ball to x y with speed vel_x and vel_y trainer command.

 TrainerMoveObjectCommand (const Point &pos, const Point &vel)
 Create a move ball to pos with speed vel trainer command.

 TrainerMoveObjectCommand (const std::string &team, UInt unum, const Point &pos)
 Create a move player unum from team side to pos command.

 TrainerMoveObjectCommand (const std::string &team, UInt unum, Float x, Float y)
 Create a move player unum from team side to x y command.

 TrainerMoveObjectCommand (const std::string &team, UInt unum, const Point &pos, Float dir)
 Create a move player unum from team side to pos and direction dir command.

 TrainerMoveObjectCommand (const std::string &team, UInt unum, Float x, Float y, Float dir)
 Create a move player unum from team side to x y and direction dir command.

 TrainerMoveObjectCommand (const std::string &team, UInt unum, const Point &pos, Float dir, const Point &vel)
 Create a move player unum from team side to pos, direction dir, and velocity vel command.

 TrainerMoveObjectCommand (const std::string &team, UInt unum, Float x, Float y, Float dir, Float vel_x, Float vel_y)
 Create a move player unum from team side to x y, direction dir, and velocity vel_x vel_y command.

 TrainerMoveObjectCommand (const std::string &cmd)
 Create an arbitrary move object command.

 ~TrainerMoveObjectCommand ()
 Destructor.

const std::string serverString () const
 Returns the server string that will execute the MoveObjectCommand at the soccer server.

TrainerMoveObjectCommand * clone () const
 Returns a new copy of the command.


Detailed Description

Class used to represent the trainer command (move OBJECT X Y [VDIR [VEL_X VEL_Y]]).

(move OBJECT X Y [VDIR [VELX VELY ]]) This command will move OBJECT, which may be a player or the ball (see SoccerServer manual for format information), to absolute position (X, Y). If VDIR is specified, it will also change its absolute facing direction to VDIR (this only matters for players). Additionally, if VELX and VELY are specified, the object's velocity will be set accordingly. The trainer always uses left-hand coordinates. Possible replies by the soccerserver:

  1. (ok move)
    The command succeeded.
  2. (error illegal object form)
    The OBJECT specification was not valid.
  3. (error illegal command form)
    The position, direction, and/or velocity specification was not valid.
Unit:
Library
Revision
1.1
Author
frehe
Date
2006/09/06 18:03:47

Definition at line 84 of file TrainerMoveObjectCommand.h.


Member Function Documentation

TrainerMoveObjectCommand * RS::TrainerMoveObjectCommand::clone   const [virtual]
 

Returns a new copy of the command.

REMEMBER TO DELETE IT, OTHERWISE YOU WILL HAVE A MEMORY LEAK!!!

Implements RS::TrainerCommand.

Definition at line 272 of file TrainerMoveObjectCommand.cc.

References TrainerMoveObjectCommand().


The documentation for this class was generated from the following files:
Generated on Mon Aug 29 08:25:23 2011 for RoboSoc by doxygen1.3-rc3