|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

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