cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands
Class EnterVehicle

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.EnterVehicle

public class EnterVehicle
extends CommandMessage

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

PROTOTYPE

public static final java.lang.String PROTOTYPE
Example how the message looks like - used during parser tests.

See Also:
Constant Field Values

Id

protected UnrealId Id
Id of the vehicle we want to enter.

Constructor Detail

EnterVehicle

public EnterVehicle(UnrealId Id)
Creates new instance of command EnterVehicle. 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. Corresponding GameBots message for this command is ENTER.

Parameters:
Id - Id of the vehicle we want to enter.

EnterVehicle

public EnterVehicle()
Creates new instance of command EnterVehicle. 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. Corresponding GameBots message for this command is ENTER.

WARNING: this is empty-command constructor, you have to use setters to fill it up with data that should be sent to GameBots2004!


EnterVehicle

public EnterVehicle(EnterVehicle original)
Cloning constructor.

Parameters:
original -
Method Detail

getId

public UnrealId getId()
Id of the vehicle we want to enter.


setId

public EnterVehicle setId(UnrealId Id)
Id of the vehicle we want to enter.


toString

public java.lang.String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public java.lang.String toHtmlString()

toMessage

public java.lang.String toMessage()