|
|||||||||
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.Respawn
public class Respawn
Representation of the GameBots2004 command RESPAWN. Use this to kill bot and force him to respawn, you can specify start location and rotation. Work also for human players and spectators in the game. This command can be issued also by bot on the bot itself (in this case Id attribute is not parsed).
Field Summary | |
---|---|
protected UnrealId |
Id
Id of the bot to be respawned (not used if command sent to bot). |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected Location |
StartLocation
Where bot respawns. |
protected Rotation |
StartRotation
Initial rotation of the bot. |
Constructor Summary | |
---|---|
Respawn()
Creates new instance of command Respawn. |
|
Respawn(Respawn original)
Cloning constructor. |
|
Respawn(UnrealId Id,
Location StartLocation,
Rotation StartRotation)
Creates new instance of command Respawn. |
Method Summary | |
---|---|
UnrealId |
getId()
Id of the bot to be respawned (not used if command sent to bot). |
Location |
getStartLocation()
Where bot respawns. |
Rotation |
getStartRotation()
Initial rotation of the bot. |
Respawn |
setId(UnrealId Id)
Id of the bot to be respawned (not used if command sent to bot). |
Respawn |
setStartLocation(Location StartLocation)
Where bot respawns. |
Respawn |
setStartRotation(Rotation StartRotation)
Initial rotation of the bot. |
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 StartLocation
protected Rotation StartRotation
Constructor Detail |
---|
public Respawn(UnrealId Id, Location StartLocation, Rotation StartRotation)
Id
- Id of the bot to be respawned (not used if command sent to
bot).StartLocation
- Where bot respawns. If you want to respawn bot at random,
don't specify StartLocation.StartRotation
- Initial rotation of the bot.public Respawn()
public Respawn(Respawn original)
original
- Method Detail |
---|
public UnrealId getId()
public Respawn setId(UnrealId Id)
public Location getStartLocation()
public Respawn setStartLocation(Location StartLocation)
public Rotation getStartRotation()
public Respawn setStartRotation(Rotation StartRotation)
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 |