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

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AutoTraceRayShared
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AutoTraceRaySharedImpl
All Implemented Interfaces:
IWorldObject, ISharedWorldObject, java.lang.Cloneable

public class AutoTraceRaySharedImpl
extends AutoTraceRayShared

Implementation of the shared part of the GameBots2004 message ATR.

Complete message documentation: Synchronous message. Contains the results of automatically casted rays. One ATR message is for one casted ray. New automatically casted rays can be defined by ADDRAY command and removed by REMOVERAY command.


Nested Class Summary
static class AutoTraceRaySharedImpl.AutoTraceRaySharedUpdate
           
 
Field Summary
protected  UnrealId Id
          An Id for this ray (should be unique), assigned by the user when adding ray.
protected  java.util.HashMap<PropertyId,ISharedProperty> propertyMap
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.AutoTraceRayShared
SharedPropertyTokens, SimTime
 
Constructor Summary
AutoTraceRaySharedImpl(AutoTraceRaySharedImpl source)
           
AutoTraceRaySharedImpl(WorldObjectId objectId, java.util.Collection<ISharedProperty> properties)
           
 
Method Summary
 AutoTraceRaySharedImpl clone()
           
 UnrealId getId()
          An Id for this ray (should be unique), assigned by the user when adding ray.
 java.util.Map<PropertyId,ISharedProperty> getProperties()
           
 ISharedProperty getProperty(PropertyId id)
           
 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.AutoTraceRayShared
getCompositeClass, getSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyMap

protected java.util.HashMap<PropertyId,ISharedProperty> propertyMap

Id

protected UnrealId Id
An Id for this ray (should be unique), assigned by the user when adding ray.

Constructor Detail

AutoTraceRaySharedImpl

public AutoTraceRaySharedImpl(AutoTraceRaySharedImpl source)

AutoTraceRaySharedImpl

public AutoTraceRaySharedImpl(WorldObjectId objectId,
                              java.util.Collection<ISharedProperty> properties)
Method Detail

setSimTime

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

Overrides:
setSimTime in class AutoTraceRayShared

clone

public AutoTraceRaySharedImpl clone()
Specified by:
clone in interface ISharedWorldObject
Specified by:
clone in class AutoTraceRayShared

getProperty

public ISharedProperty getProperty(PropertyId id)

getProperties

public java.util.Map<PropertyId,ISharedProperty> getProperties()

getId

public UnrealId getId()
An Id for this ray (should be unique), assigned by the user when adding ray.

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

toString

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

toHtmlString

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