cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class MyInventoryMessage.MyInventoryLocalMessage
java.lang.Object
cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryLocal
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryMessage.MyInventoryLocalMessage
- All Implemented Interfaces:
- IWorldObject, ILocalWorldObject, java.lang.Cloneable
- Enclosing class:
- MyInventoryMessage
public class MyInventoryMessage.MyInventoryLocalMessage
- extends MyInventoryLocal
Implementation of the local part of the GameBots2004 message MYINV, used
to facade MYINVMessage.
Complete message documentation:
An object in the observed player's inventory.
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryLocal |
SimTime |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MyInventoryMessage.MyInventoryLocalMessage
public MyInventoryMessage.MyInventoryLocalMessage()
clone
public MyInventoryMessage.MyInventoryLocalMessage clone()
- Specified by:
clone
in interface ILocalWorldObject
- Specified by:
clone
in class MyInventoryLocal
getLocal
public MyInventoryMessage.MyInventoryLocalMessage getLocal()
- Overrides:
getLocal
in class MyInventoryLocal
getShared
public ISharedWorldObject getShared()
- Overrides:
getShared
in class MyInventoryLocal
getStatic
public IStaticWorldObject getStatic()
- Overrides:
getStatic
in class MyInventoryLocal
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 MyInventoryLocal
- Returns:
getCurrentAmmo
public int getCurrentAmmo()
- If this item is a weapon, this holds the amount of primary ammo.
- Specified by:
getCurrentAmmo
in class MyInventoryLocal
getCurrentAltAmmo
public int getCurrentAltAmmo()
- If this item is a weapon, this holds the amount of secondary ammo.
- Specified by:
getCurrentAltAmmo
in class MyInventoryLocal
getAmount
public int getAmount()
- If this item is ammo or armor, this holds the amount of the item the player has.
- Specified by:
getAmount
in class MyInventoryLocal
toString
public java.lang.String toString()
- Overrides:
toString
in class MyInventoryLocal
toHtmlString
public java.lang.String toHtmlString()
- Overrides:
toHtmlString
in class MyInventoryLocal