|
||||||||||
| 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.udk.communication.messages.gbcommands.TurnTo
public class TurnTo
Specify a point, rotation value or object to turn towards. Corresponding GameBots command is TURNTO.
| Field Summary | |
|---|---|
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location |
Location
Location you want to face. |
protected cz.cuni.amis.pogamut.base3d.worldview.object.Rotation |
Rotation
Absolute rotation you want to spin to. |
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
Target
The unique id of a player/object/nav point/whatever that you want to face. |
| Constructor Summary | |
|---|---|
TurnTo()
Creates new instance of command TurnTo. |
|
TurnTo(TurnTo original)
Cloning constructor. |
|
TurnTo(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Target,
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation,
cz.cuni.amis.pogamut.base3d.worldview.object.Location Location)
Creates new instance of command TurnTo. |
|
| Method Summary | |
|---|---|
cz.cuni.amis.pogamut.base3d.worldview.object.Location |
getLocation()
Location you want to face. |
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation |
getRotation()
Absolute rotation you want to spin to. |
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getTarget()
The unique id of a player/object/nav point/whatever that you want to face. |
TurnTo |
setLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location Location)
Location you want to face. |
TurnTo |
setRotation(cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation)
Absolute rotation you want to spin to. |
TurnTo |
setTarget(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Target)
The unique id of a player/object/nav point/whatever that you want to face. |
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 |
|---|
protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Target
protected cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation
protected cz.cuni.amis.pogamut.base3d.worldview.object.Location Location
| Constructor Detail |
|---|
public TurnTo(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Target,
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation,
cz.cuni.amis.pogamut.base3d.worldview.object.Location Location)
Target - The unique id of a player/object/nav point/whatever that you
want to face. Must be visible.Rotation - Absolute rotation you want to spin to. Must be provided as comma
delimited ("0,50000,0") and should be in absolute terms and
in UT units (2pi = 65535 units). Used only if no target
provided. Rotation is parsed: First pitch (up, down), then yaw (left, right), the roll (no effect here, however it is an equivalent of doing a cartwheel).Location - Location you want to face. Normal rules for location. Only
used if no Target or Rotation.public TurnTo()
public TurnTo(TurnTo original)
| Method Detail |
|---|
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getTarget()
public TurnTo setTarget(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Target)
public cz.cuni.amis.pogamut.base3d.worldview.object.Rotation getRotation()
public TurnTo setRotation(cz.cuni.amis.pogamut.base3d.worldview.object.Rotation Rotation)
public cz.cuni.amis.pogamut.base3d.worldview.object.Location getLocation()
public TurnTo setLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location Location)
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 | |||||||||