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

Package class diagram package EnterVehicle
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.CommandMessage
      extended by cz.cuni.amis.pogamut.udk.communication.messages.gbcommands.EnterVehicle

public class EnterVehicle
extends CommandMessage

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 command is ENTER.


Field Summary
protected  UnrealId Id
          Id of the vehicle we want to enter.
 
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.
 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

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!


EnterVehicle

public EnterVehicle(EnterVehicle original)
Cloning constructor.

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 String toString()
Overrides:
toString in class CommandMessage

toHtmlString

public String toHtmlString()

toMessage

public String toMessage()


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.