cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class MyInventorySharedImpl
java.lang.Object
cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryShared
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventorySharedImpl
- All Implemented Interfaces:
- IWorldObject, ISharedWorldObject, java.lang.Cloneable
public class MyInventorySharedImpl
- extends MyInventoryShared
Implementation of the shared part of the GameBots2004 message MYINV.
Complete message documentation:
An object in the observed player's inventory.
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
propertyMap
protected java.util.HashMap<PropertyId,ISharedProperty> propertyMap
Id
protected UnrealId Id
- Unique Id of the item. This Id represents the item in the inventory.
MyInventorySharedImpl
public MyInventorySharedImpl(MyInventorySharedImpl source)
MyInventorySharedImpl
public MyInventorySharedImpl(WorldObjectId objectId,
java.util.Collection<ISharedProperty> properties)
setSimTime
public void setSimTime(long SimTime)
- Description copied from class:
MyInventoryShared
- Used by Yylex to slip correct time of the object or programmatically.
- Overrides:
setSimTime
in class MyInventoryShared
clone
public MyInventorySharedImpl clone()
- Specified by:
clone
in interface ISharedWorldObject
- Specified by:
clone
in class MyInventoryShared
getProperty
public ISharedProperty getProperty(PropertyId id)
getProperties
public java.util.Map<PropertyId,ISharedProperty> getProperties()
getId
public UnrealId getId()
- Unique Id of the item. This Id represents the item in the inventory.
- Specified by:
getId
in interface IWorldObject
- Specified by:
getId
in class MyInventoryShared
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString
in class MyInventoryShared
toHtmlString
public java.lang.String toHtmlString()
- Overrides:
toHtmlString
in class MyInventoryShared