|
|||||||||
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.EnterVehicle
public class EnterVehicle
Representation of the GameBots2004 command ENTER. Tries to enter vehicle specified by Id. Note: You have to be in vehicle EntryRadius to enter (default 100 ut units). Response to this command are messages ENTERED and LOCKED. Beware! When in vehicle just command RUNTO with Target specified works for move commands. Any other move commands will cause vehicle to got straight ahead. Also it is not possible to control speed or steering at this moment. Everything is done automaticaly by RUNTO with Target specified.
Field Summary | |
---|---|
protected UnrealId |
Id
Id of the vehicle we want to enter. |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
Constructor Summary | |
---|---|
EnterVehicle()
Creates new instance of command EnterVehicle. |
|
EnterVehicle(EnterVehicle original)
Cloning constructor. |
|
EnterVehicle(UnrealId Id)
Creates new instance of command EnterVehicle. |
Method Summary | |
---|---|
UnrealId |
getId()
Id of the vehicle we want to enter. |
EnterVehicle |
setId(UnrealId Id)
Id of the vehicle we want to enter. |
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
Constructor Detail |
---|
public EnterVehicle(UnrealId Id)
Id
- Id of the vehicle we want to enter.public EnterVehicle()
public EnterVehicle(EnterVehicle original)
original
- Method Detail |
---|
public UnrealId getId()
public EnterVehicle setId(UnrealId Id)
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 |