cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands
Class MoveCamera

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.MoveCamera

public class MoveCamera
extends CommandMessage

Representation of the GameBots2004 command FORCECAMMOVE. Moves with the player that was previously set as a camera.


Field Summary
protected  Location Destination
          Final destination where the camera should move.
protected  Vector3d Direction
          Vector that sets direction of the move of this camera.
protected  UnrealId Id
          UnrealId of the player that is a camera and that we want to move.
static java.lang.String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  Rotation Rotation
          Desired rotation.
protected  Rotation RotationSpeed
          Desired rotation speed.
protected  java.lang.Double Speed
          Set the speed of the move of this camera.
protected  java.lang.Double Time
          How long this move of this camera will last (in seconds).
 
Constructor Summary
MoveCamera()
          Creates new instance of command MoveCamera.
MoveCamera(MoveCamera original)
          Cloning constructor.
MoveCamera(UnrealId Id, Location Destination, Vector3d Direction, Rotation Rotation, Rotation RotationSpeed, java.lang.Double Speed, java.lang.Double Time)
          Creates new instance of command MoveCamera.
 
Method Summary
 Location getDestination()
          Final destination where the camera should move.
 Vector3d getDirection()
          Vector that sets direction of the move of this camera.
 UnrealId getId()
          UnrealId of the player that is a camera and that we want to move.
 Rotation getRotation()
          Desired rotation.
 Rotation getRotationSpeed()
          Desired rotation speed.
 java.lang.Double getSpeed()
          Set the speed of the move of this camera.
 java.lang.Double getTime()
          How long this move of this camera will last (in seconds).
 MoveCamera setDestination(Location Destination)
          Final destination where the camera should move.
 MoveCamera setDirection(Vector3d Direction)
          Vector that sets direction of the move of this camera.
 MoveCamera setId(UnrealId Id)
          UnrealId of the player that is a camera and that we want to move.
 MoveCamera setRotation(Rotation Rotation)
          Desired rotation.
 MoveCamera setRotationSpeed(Rotation RotationSpeed)
          Desired rotation speed.
 MoveCamera setSpeed(java.lang.Double Speed)
          Set the speed of the move of this camera.
 MoveCamera setTime(java.lang.Double Time)
          How long this move of this camera will last (in seconds).
 java.lang.String toHtmlString()
           
 java.lang.String toMessage()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROTOTYPE

public static final java.lang.String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Id

protected UnrealId Id
UnrealId of the player that is a camera and that we want to move.


Destination

protected Location Destination
Final destination where the camera should move.


Direction

protected Vector3d Direction
Vector that sets direction of the move of this camera.


Rotation

protected Rotation Rotation
Desired rotation.


RotationSpeed

protected Rotation RotationSpeed
Desired rotation speed.


Speed

protected java.lang.Double Speed
Set the speed of the move of this camera.


Time

protected java.lang.Double Time
How long this move of this camera will last (in seconds).

Constructor Detail

MoveCamera

public MoveCamera(UnrealId Id,
                  Location Destination,
                  Vector3d Direction,
                  Rotation Rotation,
                  Rotation RotationSpeed,
                  java.lang.Double Speed,
                  java.lang.Double Time)
Creates new instance of command MoveCamera. Moves with the player that was previously set as a camera. Corresponding GameBots message for this command is FORCECAMMOVE.

Parameters:
Id - UnrealId of the player that is a camera and that we want to move.
Destination - Final destination where the camera should move.
Direction - Vector that sets direction of the move of this camera.
Rotation - Desired rotation.
RotationSpeed - Desired rotation speed.
Speed - Set the speed of the move of this camera.
Time - How long this move of this camera will last (in seconds).

MoveCamera

public MoveCamera()
Creates new instance of command MoveCamera. Moves with the player that was previously set as a camera. Corresponding GameBots message for this command is FORCECAMMOVE.

WARNING: this is empty-command constructor, you have to use setters to fill it up with data that should be sent to GameBots2004!


MoveCamera

public MoveCamera(MoveCamera original)
Cloning constructor.

Parameters:
original -
Method Detail

getId

public UnrealId getId()
UnrealId of the player that is a camera and that we want to move.


setId

public MoveCamera setId(UnrealId Id)
UnrealId of the player that is a camera and that we want to move.


getDestination

public Location getDestination()
Final destination where the camera should move.


setDestination

public MoveCamera setDestination(Location Destination)
Final destination where the camera should move.


getDirection

public Vector3d getDirection()
Vector that sets direction of the move of this camera.


setDirection

public MoveCamera setDirection(Vector3d Direction)
Vector that sets direction of the move of this camera.


getRotation

public Rotation getRotation()
Desired rotation.


setRotation

public MoveCamera setRotation(Rotation Rotation)
Desired rotation.


getRotationSpeed

public Rotation getRotationSpeed()
Desired rotation speed.


setRotationSpeed

public MoveCamera setRotationSpeed(Rotation RotationSpeed)
Desired rotation speed.


getSpeed

public java.lang.Double getSpeed()
Set the speed of the move of this camera.


setSpeed

public MoveCamera setSpeed(java.lang.Double Speed)
Set the speed of the move of this camera.


getTime

public java.lang.Double getTime()
How long this move of this camera will last (in seconds).


setTime

public MoveCamera setTime(java.lang.Double Time)
How long this move of this camera will last (in seconds).


toString

public java.lang.String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()