|
|||||||||
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.SetCamera
public class SetCamera
Representation of the GameBots2004 command FORCECAM. Sets input player to be a camera (he want be able to control himself). This player/camera can be controlled by MoveCamera command. Also sets camera location and rotation.
Field Summary | |
---|---|
protected UnrealId |
Id
UnrealId of the player we want to set as a camera. |
protected Location |
Location
Initial location of this camera. |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected java.lang.Boolean |
Release
True to release this player from camera mode. |
protected Rotation |
Rotation
Initial rotation of this camera. |
Constructor Summary | |
---|---|
SetCamera()
Creates new instance of command SetCamera. |
|
SetCamera(SetCamera original)
Cloning constructor. |
|
SetCamera(UnrealId Id,
Location Location,
Rotation Rotation,
java.lang.Boolean Release)
Creates new instance of command SetCamera. |
Method Summary | |
---|---|
UnrealId |
getId()
UnrealId of the player we want to set as a camera. |
Location |
getLocation()
Initial location of this camera. |
Rotation |
getRotation()
Initial rotation of this camera. |
java.lang.Boolean |
isRelease()
True to release this player from camera mode. |
SetCamera |
setId(UnrealId Id)
UnrealId of the player we want to set as a camera. |
SetCamera |
setLocation(Location Location)
Initial location of this camera. |
SetCamera |
setRelease(java.lang.Boolean Release)
True to release this player from camera mode. |
SetCamera |
setRotation(Rotation Rotation)
Initial rotation of this camera. |
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 Location
protected Rotation Rotation
protected java.lang.Boolean Release
Constructor Detail |
---|
public SetCamera(UnrealId Id, Location Location, Rotation Rotation, java.lang.Boolean Release)
Id
- UnrealId of the player we want to set as a camera.Location
- Initial location of this camera.Rotation
- Initial rotation of this camera.Release
- True to release this player from camera mode.public SetCamera()
public SetCamera(SetCamera original)
original
- Method Detail |
---|
public UnrealId getId()
public SetCamera setId(UnrealId Id)
public Location getLocation()
public SetCamera setLocation(Location Location)
public Rotation getRotation()
public SetCamera setRotation(Rotation Rotation)
public java.lang.Boolean isRelease()
public SetCamera setRelease(java.lang.Boolean Release)
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 |