public class TurnTo extends CommandMessage
| Modifier and Type | Field and Description |
|---|---|
protected Location |
Location
Location you want to face.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected Rotation |
Rotation
Absolute rotation you want to spin to.
|
protected UnrealId |
Target
The unique id of a player/object/nav point/whatever that you
want to face.
|
| Constructor and Description |
|---|
TurnTo()
Creates new instance of command TurnTo.
|
TurnTo(TurnTo original)
Cloning constructor.
|
TurnTo(UnrealId Target,
Rotation Rotation,
Location Location)
Creates new instance of command TurnTo.
|
| Modifier and Type | Method and Description |
|---|---|
Location |
getLocation()
Location you want to face.
|
Rotation |
getRotation()
Absolute rotation you want to spin to.
|
UnrealId |
getTarget()
The unique id of a player/object/nav point/whatever that you
want to face.
|
TurnTo |
setLocation(Location Location)
Location you want to face.
|
TurnTo |
setRotation(Rotation Rotation)
Absolute rotation you want to spin to.
|
TurnTo |
setTarget(UnrealId Target)
The unique id of a player/object/nav point/whatever that you
want to face.
|
String |
toHtmlString() |
String |
toMessage() |
String |
toString() |
public static final String PROTOTYPE
protected UnrealId Target
protected Rotation Rotation
protected Location Location
public TurnTo(UnrealId Target, Rotation Rotation, 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)
original - public UnrealId getTarget()
public TurnTo setTarget(UnrealId Target)
public Rotation getRotation()
public TurnTo setRotation(Rotation Rotation)
public Location getLocation()
public TurnTo setLocation(Location Location)
public String toString()
toString in class CommandMessagepublic String toHtmlString()
public String toMessage()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.