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

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

public class IncomingProjectileSharedImpl
extends IncomingProjectileShared

Implementation of the shared part of the GameBots2004 message PRJ.

Complete message documentation: Both asynchronous and synchronous message. Incoming projectile that we can see.


Nested Class Summary
static class IncomingProjectileSharedImpl.IncomingProjectileSharedUpdate
           
 
Field Summary
protected  UnrealId Id
          Unique Id of the projectile.
protected  java.util.HashMap<PropertyId,ISharedProperty> propertyMap
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.IncomingProjectileShared
SharedPropertyTokens, SimTime
 
Constructor Summary
IncomingProjectileSharedImpl(IncomingProjectileSharedImpl source)
           
IncomingProjectileSharedImpl(WorldObjectId objectId, java.util.Collection<ISharedProperty> properties)
           
 
Method Summary
 IncomingProjectileSharedImpl clone()
           
 UnrealId getId()
          Unique Id of the projectile.
 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.IncomingProjectileShared
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
Unique Id of the projectile.

Constructor Detail

IncomingProjectileSharedImpl

public IncomingProjectileSharedImpl(IncomingProjectileSharedImpl source)

IncomingProjectileSharedImpl

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

setSimTime

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

Overrides:
setSimTime in class IncomingProjectileShared

clone

public IncomingProjectileSharedImpl clone()
Specified by:
clone in interface ISharedWorldObject
Specified by:
clone in class IncomingProjectileShared

getProperty

public ISharedProperty getProperty(PropertyId id)

getProperties

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

getId

public UnrealId getId()
Unique Id of the projectile.

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

toString

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

toHtmlString

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