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

Package class diagram package 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  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, 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.
 String getType()
          Class of the vehicle.
 boolean isDifferentFrom(IStaticWorldObject other)
           
 void setSimTime(long SimTime)
          Used by Yylex to slip correct time of the object or programmatically.
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.VehicleStatic
getCompositeClass, getSimTime
 
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
toJsonLiteral
 
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 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,
                         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

getType

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

Specified by:
getType in class VehicleStatic

isDifferentFrom

public boolean isDifferentFrom(IStaticWorldObject other)
Specified by:
isDifferentFrom in interface IStaticWorldObject
Overrides:
isDifferentFrom in class VehicleStatic

toString

public String toString()
Overrides:
toString in class VehicleStatic

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class VehicleStatic


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