cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class MyInventoryMessage.MyInventoryStaticMessage
java.lang.Object
cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryStatic
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.
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MyInventoryMessage.MyInventoryStaticMessage
public MyInventoryMessage.MyInventoryStaticMessage()
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