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

Package class diagram package 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 cz.cuni.amis.pogamut.base.communication.messages.CommandMessage

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


Field Summary
protected  cz.cuni.amis.pogamut.base3d.worldview.object.Location Destination
          Final destination where the camera should move.
protected  javax.vecmath.Vector3d Direction
          Vector that sets direction of the move of this camera.
protected  cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
          UnrealId of the player that is a camera and that we want to move.
static String PROTOTYPE
          Example how the message looks like - used during parser tests.
protected  cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation
          Desired rotation.
protected  cz.cuni.amis.pogamut.base3d.worldview.object.Rotation RotationSpeed
          Desired rotation speed.
protected  Double Speed
          Set the speed of the move of this camera.
protected  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(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id, cz.cuni.amis.pogamut.base3d.worldview.object.Location Destination, javax.vecmath.Vector3d Direction, cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation, cz.cuni.amis.pogamut.base3d.worldview.object.Rotation RotationSpeed, Double Speed, Double Time)
          Creates new instance of command MoveCamera.
 
Method Summary
 cz.cuni.amis.pogamut.base3d.worldview.object.Location getDestination()
          Final destination where the camera should move.
 javax.vecmath.Vector3d getDirection()
          Vector that sets direction of the move of this camera.
 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
          UnrealId of the player that is a camera and that we want to move.
 cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getRotation()
          Desired rotation.
 cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getRotationSpeed()
          Desired rotation speed.
 Double getSpeed()
          Set the speed of the move of this camera.
 Double getTime()
          How long this move of this camera will last (in seconds).
 MoveCamera setDestination(cz.cuni.amis.pogamut.base3d.worldview.object.Location Destination)
          Final destination where the camera should move.
 MoveCamera setDirection(javax.vecmath.Vector3d Direction)
          Vector that sets direction of the move of this camera.
 MoveCamera setId(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id)
          UnrealId of the player that is a camera and that we want to move.
 MoveCamera setRotation(cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation)
          Desired rotation.
 MoveCamera setRotationSpeed(cz.cuni.amis.pogamut.base3d.worldview.object.Rotation RotationSpeed)
          Desired rotation speed.
 MoveCamera setSpeed(Double Speed)
          Set the speed of the move of this camera.
 MoveCamera setTime(Double Time)
          How long this move of this camera will last (in seconds).
 String toHtmlString()
           
 String toMessage()
           
 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 String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Id

protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
UnrealId of the player that is a camera and that we want to move.


Destination

protected cz.cuni.amis.pogamut.base3d.worldview.object.Location Destination
Final destination where the camera should move.


Direction

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


Rotation

protected cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation
Desired rotation.


RotationSpeed

protected cz.cuni.amis.pogamut.base3d.worldview.object.Rotation RotationSpeed
Desired rotation speed.


Speed

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


Time

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

Constructor Detail

MoveCamera

public MoveCamera(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
                  cz.cuni.amis.pogamut.base3d.worldview.object.Location Destination,
                  javax.vecmath.Vector3d Direction,
                  cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation,
                  cz.cuni.amis.pogamut.base3d.worldview.object.Rotation RotationSpeed,
                  Double Speed,
                  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 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
UnrealId of the player that is a camera and that we want to move.


setId

public MoveCamera setId(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id)
UnrealId of the player that is a camera and that we want to move.


getDestination

public cz.cuni.amis.pogamut.base3d.worldview.object.Location getDestination()
Final destination where the camera should move.


setDestination

public MoveCamera setDestination(cz.cuni.amis.pogamut.base3d.worldview.object.Location Destination)
Final destination where the camera should move.


getDirection

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


setDirection

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


getRotation

public cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getRotation()
Desired rotation.


setRotation

public MoveCamera setRotation(cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation)
Desired rotation.


getRotationSpeed

public cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getRotationSpeed()
Desired rotation speed.


setRotationSpeed

public MoveCamera setRotationSpeed(cz.cuni.amis.pogamut.base3d.worldview.object.Rotation RotationSpeed)
Desired rotation speed.


getSpeed

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


setSpeed

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


getTime

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


setTime

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


toString

public String toString()
Overrides:
toString in class cz.cuni.amis.pogamut.base.communication.messages.CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.