cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class InitedMessageSharedImpl
java.lang.Object
cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessageShared
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.InitedMessageSharedImpl
- All Implemented Interfaces:
- IWorldObject, ISharedWorldObject, 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.
propertyMap
protected HashMap<PropertyId,ISharedProperty> propertyMap
InitedMessageSharedImpl
public InitedMessageSharedImpl(InitedMessageSharedImpl source)
InitedMessageSharedImpl
public InitedMessageSharedImpl(WorldObjectId objectId,
Collection<ISharedProperty> properties)
getId
public UnrealId getId()
- Specified by:
getId
in interface IWorldObject
- Overrides:
getId
in class InitedMessageShared
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 Map<PropertyId,ISharedProperty> getProperties()
toString
public String toString()
- Overrides:
toString
in class InitedMessageShared
toHtmlString
public String toHtmlString()
- Overrides:
toHtmlString
in class InitedMessageShared
Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.