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

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryStatic
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryMessage.MyInventoryStaticMessage
All Implemented Interfaces:
IWorldObject, IStaticWorldObject
Enclosing class:
MyInventoryMessage

public class MyInventoryMessage.MyInventoryStaticMessage
extends MyInventoryStatic

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

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


Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryStatic
SimTime
 
Constructor Summary
MyInventoryMessage.MyInventoryStaticMessage()
           
 
Method Summary
 MyInventoryMessage.MyInventoryStaticMessage clone()
           
 ItemDescriptor getDescriptor()
          Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.
 UnrealId getId()
          Unique Id of the item.
 ItemType getType()
          Class of the item (e.g.
 java.lang.String toHtmlString()
           
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryStatic
getCompositeClass, getSimTime, setSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MyInventoryMessage.MyInventoryStaticMessage

public MyInventoryMessage.MyInventoryStaticMessage()
Method Detail

clone

public MyInventoryMessage.MyInventoryStaticMessage clone()
Specified by:
clone in class MyInventoryStatic

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 MyInventoryStatic
Returns:

getType

public ItemType getType()
Class of the item (e.g. xWeapons.FlakCannonPickup).

Specified by:
getType in class MyInventoryStatic

getDescriptor

public ItemDescriptor getDescriptor()
Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.

Specified by:
getDescriptor in class MyInventoryStatic

toString

public java.lang.String toString()
Overrides:
toString in class MyInventoryStatic

toHtmlString

public java.lang.String toHtmlString()
Overrides:
toHtmlString in class MyInventoryStatic