|
||||||||||
| 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.Teleport
public class Teleport
Representation of the GameBots2004 command TELEPORT. Use this to teleport the bot to another location.
| Field Summary | |
|---|---|
protected UnrealId |
Id
ID of the bot to be teleported |
static String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected Location |
TargetLocation
Where the bot teleports to. |
protected Rotation |
TargetRotation
Rotation after teleportation. |
| Constructor Summary | |
|---|---|
Teleport()
Creates new instance of command Teleport. |
|
Teleport(Teleport original)
Cloning constructor. |
|
Teleport(UnrealId Id,
Location TargetLocation,
Rotation TargetRotation)
Creates new instance of command Teleport. |
|
| Method Summary | |
|---|---|
UnrealId |
getId()
ID of the bot to be teleported |
Location |
getTargetLocation()
Where the bot teleports to. |
Rotation |
getTargetRotation()
Rotation after teleportation. |
Teleport |
setId(UnrealId Id)
ID of the bot to be teleported |
Teleport |
setTargetLocation(Location TargetLocation)
Where the bot teleports to. |
Teleport |
setTargetRotation(Rotation TargetRotation)
Rotation after teleportation. |
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 UnrealId Id
protected Location TargetLocation
protected Rotation TargetRotation
| Constructor Detail |
|---|
public Teleport(UnrealId Id,
Location TargetLocation,
Rotation TargetRotation)
Id - ID of the bot to be teleportedTargetLocation - Where the bot teleports to.TargetRotation - Rotation after teleportation.public Teleport()
public Teleport(Teleport original)
original - | Method Detail |
|---|
public UnrealId getId()
public Teleport setId(UnrealId Id)
public Location getTargetLocation()
public Teleport setTargetLocation(Location TargetLocation)
public Rotation getTargetRotation()
public Teleport setTargetRotation(Rotation TargetRotation)
public String toString()
toString in class CommandMessagepublic String toHtmlString()
public String toMessage()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||