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

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.VehicleLocal
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.VehicleLocalImpl
All Implemented Interfaces:
IWorldObject, ILocalViewable, ILocalWorldObject, ILocalGBViewable, java.lang.Cloneable

public class VehicleLocalImpl
extends VehicleLocal

Implementation of the local 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 VehicleLocalImpl.VehicleLocalUpdate
           
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.VehicleLocal
VehicleLocal.ObjectDisappeared
 
Field Summary
protected  UnrealId Id
          Unique Id of the vehicle or vehicle part.
protected  boolean Visible
          If the vehicle is in the field of view of the bot.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.VehicleLocal
SimTime
 
Constructor Summary
VehicleLocalImpl()
          Parameter-less contructor for the message.
VehicleLocalImpl(UnrealId Id, boolean Visible)
          Creates new instance of the message Vehicle.
VehicleLocalImpl(Vehicle original)
          Cloning constructor from the full message.
VehicleLocalImpl(VehicleLocal original)
          Cloning constructor from the message part.
VehicleLocalImpl(VehicleLocalImpl original)
          Cloning constructor from the full message.
 
Method Summary
 VehicleLocalImpl clone()
           
 UnrealId getId()
          Unique Id of the vehicle or vehicle part.
 VehicleLocalImpl getLocal()
           
 ISharedWorldObject getShared()
           
 IStaticWorldObject getStatic()
           
 boolean isVisible()
          If the vehicle is in the field of view of the bot.
 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.VehicleLocal
createDisappearEvent, 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.


Visible

protected boolean Visible
If the vehicle is in the field of view of the bot.

Constructor Detail

VehicleLocalImpl

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


VehicleLocalImpl

public VehicleLocalImpl(UnrealId Id,
                        boolean Visible)
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 (local part) is VEH.

Parameters:
Id - Unique Id of the vehicle or vehicle part.
Visible - If the vehicle is in the field of view of the bot.

VehicleLocalImpl

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

Parameters:
original -

VehicleLocalImpl

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

Parameters:
original -

VehicleLocalImpl

public VehicleLocalImpl(VehicleLocal original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

setSimTime

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

Overrides:
setSimTime in class VehicleLocal

clone

public VehicleLocalImpl clone()
Specified by:
clone in interface ILocalWorldObject
Specified by:
clone in class VehicleLocal

getId

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

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

isVisible

public boolean isVisible()
If the vehicle is in the field of view of the bot.

Specified by:
isVisible in interface ILocalViewable
Specified by:
isVisible in class VehicleLocal
Returns:

getLocal

public VehicleLocalImpl getLocal()
Overrides:
getLocal in class VehicleLocal

getShared

public ISharedWorldObject getShared()
Overrides:
getShared in class VehicleLocal

getStatic

public IStaticWorldObject getStatic()
Overrides:
getStatic in class VehicleLocal

toString

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

toHtmlString

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