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

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

public class InitedMessageSharedImpl
extends InitedMessageShared

Implementation of the shared part of the GameBots2004 message INITED.

Complete message documentation: Asynchronous message. Sent after succesfull init command (so usually just once). Holds many attributes of the bots like speed, id starting and max health, etc. Some attributes are not used due to GameBots mechanics.


Nested Class Summary
static class InitedMessageSharedImpl.InitedMessageSharedUpdate
           
 
Field Summary
protected  java.util.HashMap<PropertyId,ISharedProperty> propertyMap
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessageShared
InitedMessageId, SharedPropertyTokens, SimTime
 
Constructor Summary
InitedMessageSharedImpl(InitedMessageSharedImpl source)
           
InitedMessageSharedImpl(WorldObjectId objectId, java.util.Collection<ISharedProperty> properties)
           
 
Method Summary
 InitedMessageSharedImpl clone()
           
 UnrealId getId()
          Returns an id of the object that is unique among all world objects.
 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.InitedMessageShared
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
Constructor Detail

InitedMessageSharedImpl

public InitedMessageSharedImpl(InitedMessageSharedImpl source)

InitedMessageSharedImpl

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

getId

public UnrealId getId()
Description copied from interface: IWorldObject
Returns an id of the object that is unique among all world objects.

Specified by:
getId in interface IWorldObject
Overrides:
getId in class InitedMessageShared
Returns:

setSimTime

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

Overrides:
setSimTime in class InitedMessageShared

clone

public InitedMessageSharedImpl clone()
Specified by:
clone in interface ISharedWorldObject
Specified by:
clone in class InitedMessageShared

getProperty

public ISharedProperty getProperty(PropertyId id)

getProperties

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

toString

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

toHtmlString

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