cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class InitedMessageMessage.InitedMessageSharedMessage

Package class diagram package InitedMessageMessage.InitedMessageSharedMessage
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.InitedMessageMessage.InitedMessageSharedMessage
All Implemented Interfaces:
IWorldObject, ISharedWorldObject, Cloneable
Enclosing class:
InitedMessageMessage

public class InitedMessageMessage.InitedMessageSharedMessage
extends InitedMessageShared

Implementation of the shared part of the GameBots2004 message INITED, used to facade INITEDMessage.

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.


Field Summary
protected  HashMap<PropertyId,ISharedProperty> propertyMap
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessageShared
InitedMessageId, SharedPropertyTokens, SimTime
 
Constructor Summary
InitedMessageMessage.InitedMessageSharedMessage()
           
 
Method Summary
 InitedMessageMessage.InitedMessageSharedMessage clone()
           
 UnrealId getId()
           
 Map<PropertyId,ISharedProperty> getProperties()
           
 ISharedProperty getProperty(PropertyId id)
           
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessageShared
getCompositeClass, getSimTime, setSimTime
 
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

propertyMap

protected HashMap<PropertyId,ISharedProperty> propertyMap
Constructor Detail

InitedMessageMessage.InitedMessageSharedMessage

public InitedMessageMessage.InitedMessageSharedMessage()
Method Detail

getId

public UnrealId getId()
Specified by:
getId in interface IWorldObject
Overrides:
getId in class InitedMessageShared

clone

public InitedMessageMessage.InitedMessageSharedMessage clone()
Specified by:
clone in interface ISharedWorldObject
Specified by:
clone in class InitedMessageShared

getProperty

public ISharedProperty getProperty(PropertyId id)

getProperties

public Map<PropertyId,ISharedProperty> getProperties()

toString

public String toString()
Overrides:
toString in class InitedMessageShared

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class InitedMessageShared


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