cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class VehicleStaticImpl

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.VehicleStatic
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.VehicleStaticImpl
All Implemented Interfaces:
IWorldObject, IStaticWorldObject

public class VehicleStaticImpl
extends VehicleStatic

Implementation of the static part of the GameBots2004 message VEH.

Complete message documentation: Synchronous message. Holds vehicles we see. Id for vehicles doesn't work, so this message is without Id. We can join vehicles by ENTER command if we are close enough - ussually 100 ut units or less. Note: Vehicle support is in aplha testing right now.


Nested Class Summary
static class VehicleStaticImpl.VehicleStaticUpdate
           
 
Field Summary
protected  UnrealId Id
          Unique Id of the vehicle or vehicle part.
protected  java.lang.String Type
          Class of the vehicle.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.VehicleStatic
SimTime
 
Constructor Summary
VehicleStaticImpl()
          Parameter-less contructor for the message.
VehicleStaticImpl(UnrealId Id, java.lang.String Type)
          Creates new instance of the message Vehicle.
VehicleStaticImpl(Vehicle original)
          Cloning constructor from the full message.
VehicleStaticImpl(VehicleStatic original)
          Cloning constructor from the message part.
VehicleStaticImpl(VehicleStaticImpl original)
          Cloning constructor from the full message.
 
Method Summary
 VehicleStaticImpl clone()
           
 UnrealId getId()
          Unique Id of the vehicle or vehicle part.
 java.lang.String getType()
          Class of the vehicle.
 void setSimTime(long SimTime)
          Used by Yylex to slip correct time of the object or programmatically.
 java.lang.String toHtmlString()
           
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.VehicleStatic
getCompositeClass, getSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

Id

protected UnrealId Id
Unique Id of the vehicle or vehicle part.


Type

protected java.lang.String Type
Class of the vehicle. If it is a car, turret etc.

Constructor Detail

VehicleStaticImpl

public VehicleStaticImpl()
Parameter-less contructor for the message.


VehicleStaticImpl

public VehicleStaticImpl(UnrealId Id,
                         java.lang.String Type)
Creates new instance of the message Vehicle. Synchronous message. Holds vehicles we see. Id for vehicles doesn't work, so this message is without Id. We can join vehicles by ENTER command if we are close enough - ussually 100 ut units or less. Note: Vehicle support is in aplha testing right now. Corresponding GameBots message (static part) is VEH.

Parameters:
Id - Unique Id of the vehicle or vehicle part.
Type - Class of the vehicle. If it is a car, turret etc.

VehicleStaticImpl

public VehicleStaticImpl(Vehicle original)
Cloning constructor from the full message.

Parameters:
original -

VehicleStaticImpl

public VehicleStaticImpl(VehicleStaticImpl original)
Cloning constructor from the full message.

Parameters:
original -

VehicleStaticImpl

public VehicleStaticImpl(VehicleStatic original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

setSimTime

public void setSimTime(long SimTime)
Description copied from class: VehicleStatic
Used by Yylex to slip correct time of the object or programmatically.

Overrides:
setSimTime in class VehicleStatic

clone

public VehicleStaticImpl clone()
Specified by:
clone in class VehicleStatic

getId

public UnrealId getId()
Unique Id of the vehicle or vehicle part.

Specified by:
getId in interface IWorldObject
Specified by:
getId in class VehicleStatic
Returns:

getType

public java.lang.String getType()
Class of the vehicle. If it is a car, turret etc.

Specified by:
getType in class VehicleStatic

toString

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

toHtmlString

public java.lang.String toHtmlString()
Overrides:
toHtmlString in class VehicleStatic