|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.CommandMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.MoveCamera
public class MoveCamera
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 |
---|
public static final java.lang.String PROTOTYPE
protected UnrealId Id
protected Location Destination
protected Vector3d Direction
protected Rotation Rotation
protected Rotation RotationSpeed
protected java.lang.Double Speed
protected java.lang.Double Time
Constructor Detail |
---|
public MoveCamera(UnrealId Id, Location Destination, Vector3d Direction, Rotation Rotation, Rotation RotationSpeed, java.lang.Double Speed, java.lang.Double Time)
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).public MoveCamera()
public MoveCamera(MoveCamera original)
original
- Method Detail |
---|
public UnrealId getId()
public MoveCamera setId(UnrealId Id)
public Location getDestination()
public MoveCamera setDestination(Location Destination)
public Vector3d getDirection()
public MoveCamera setDirection(Vector3d Direction)
public Rotation getRotation()
public MoveCamera setRotation(Rotation Rotation)
public Rotation getRotationSpeed()
public MoveCamera setRotationSpeed(Rotation RotationSpeed)
public java.lang.Double getSpeed()
public MoveCamera setSpeed(java.lang.Double Speed)
public java.lang.Double getTime()
public MoveCamera setTime(java.lang.Double Time)
public java.lang.String toString()
toString
in class CommandMessage
public java.lang.String toHtmlString()
public java.lang.String toMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |