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

Package class diagram package MyInventorySharedImpl
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.MyInventorySharedImpl
All Implemented Interfaces:
cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject, cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject, 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.


Nested Class Summary
static class MyInventorySharedImpl.MyInventorySharedUpdate
           
 
Field Summary
protected  cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
          Unique Id of the item.
protected  HashMap<cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId,cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> propertyMap
           
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryShared
SharedPropertyTokens, SimTime
 
Constructor Summary
MyInventorySharedImpl(MyInventorySharedImpl source)
           
MyInventorySharedImpl(cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId objectId, Collection<cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> properties)
           
 
Method Summary
 MyInventorySharedImpl clone()
           
 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
          Unique Id of the item.
 Map<cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId,cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> getProperties()
           
 cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty getProperty(cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId id)
           
 void setSimTime(long SimTime)
          Used by Yylex to slip correct time of the object or programmatically.
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryShared
getCompositeClass, getSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

propertyMap

protected HashMap<cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId,cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> propertyMap

Id

protected cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
Unique Id of the item. This Id represents the item in the inventory.

Constructor Detail

MyInventorySharedImpl

public MyInventorySharedImpl(MyInventorySharedImpl source)

MyInventorySharedImpl

public MyInventorySharedImpl(cz.cuni.amis.pogamut.base.communication.worldview.object.WorldObjectId objectId,
                             Collection<cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> properties)
Method Detail

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 cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject
Specified by:
clone in class MyInventoryShared

getProperty

public cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty getProperty(cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId id)

getProperties

public Map<cz.cuni.amis.pogamut.multi.communication.worldview.property.PropertyId,cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedProperty> getProperties()

getId

public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
Unique Id of the item. This Id represents the item in the inventory.

Specified by:
getId in interface cz.cuni.amis.pogamut.base.communication.worldview.object.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 © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.