cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class MyInventoryMessage.MyInventorySharedMessage

Package class diagram package MyInventoryMessage.MyInventorySharedMessage
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryShared
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryMessage.MyInventorySharedMessage
All Implemented Interfaces:
IWorldObject, ISharedWorldObject, Cloneable
Enclosing class:
MyInventoryMessage

public class MyInventoryMessage.MyInventorySharedMessage
extends MyInventoryShared

Implementation of the shared part of the GameBots2004 message MYINV, used to facade MYINVMessage.

Complete message documentation: An object in the observed player's inventory.


Field Summary
protected  HashMap<PropertyId,ISharedProperty> propertyMap
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryShared
SharedPropertyTokens, SimTime
 
Constructor Summary
MyInventoryMessage.MyInventorySharedMessage()
           
 
Method Summary
 MyInventoryMessage.MyInventorySharedMessage clone()
           
 UnrealId getId()
          Unique Id of the item.
 Map<PropertyId,ISharedProperty> getProperties()
           
 ISharedProperty getProperty(PropertyId id)
           
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryShared
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

MyInventoryMessage.MyInventorySharedMessage

public MyInventoryMessage.MyInventorySharedMessage()
Method Detail

clone

public MyInventoryMessage.MyInventorySharedMessage clone()
Specified by:
clone in interface ISharedWorldObject
Specified by:
clone in class MyInventoryShared

getProperty

public ISharedProperty getProperty(PropertyId id)

getProperties

public 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

toString

public String toString()
Overrides:
toString in class MyInventoryShared

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class MyInventoryShared


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