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

Package class diagram package MyInventoryLocal
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryLocal
All Implemented Interfaces:
IWorldObject, ILocalWorldObject, Cloneable
Direct Known Subclasses:
MyInventoryLocalImpl, MyInventoryMessage.MyInventoryLocalMessage

public abstract class MyInventoryLocal
extends InfoMessage
implements ILocalWorldObject

Abstract definition of the local part of the GameBots2004 message MYINV.

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


Field Summary
protected  long SimTime
           
 
Constructor Summary
MyInventoryLocal()
          Parameter-less contructor for the message.
 
Method Summary
abstract  MyInventoryLocal clone()
           
abstract  int getAmount()
          If this item is ammo or armor, this holds the amount of the item the player has.
 Class getCompositeClass()
           
abstract  int getCurrentAltAmmo()
          If this item is a weapon, this holds the amount of secondary ammo.
abstract  int getCurrentAmmo()
          If this item is a weapon, this holds the amount of primary ammo.
abstract  UnrealId getId()
          Unique Id of the item.
 MyInventoryLocal getLocal()
           
 ISharedWorldObject getShared()
           
 long getSimTime()
          Simulation time in MILLI SECONDS !!!
 IStaticWorldObject getStatic()
           
protected  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.base.communication.messages.InfoMessage
toJsonLiteral
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SimTime

protected long SimTime
Constructor Detail

MyInventoryLocal

public MyInventoryLocal()
Parameter-less contructor for the message.

Method Detail

getSimTime

public long getSimTime()
Simulation time in MILLI SECONDS !!!

Specified by:
getSimTime in interface IWorldObject

setSimTime

protected void setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.


clone

public abstract MyInventoryLocal clone()
Specified by:
clone in interface ILocalWorldObject
Overrides:
clone in class Object

getCompositeClass

public Class getCompositeClass()
Specified by:
getCompositeClass in interface ILocalWorldObject

getId

public abstract UnrealId getId()
Unique Id of the item. This Id represents the item in the inventory.

Specified by:
getId in interface IWorldObject

getCurrentAmmo

public abstract int getCurrentAmmo()
If this item is a weapon, this holds the amount of primary ammo.


getCurrentAltAmmo

public abstract int getCurrentAltAmmo()
If this item is a weapon, this holds the amount of secondary ammo.


getAmount

public abstract int getAmount()
If this item is ammo or armor, this holds the amount of the item the player has.


getLocal

public MyInventoryLocal getLocal()

getShared

public ISharedWorldObject getShared()

getStatic

public IStaticWorldObject getStatic()

toString

public String toString()
Overrides:
toString in class InfoMessage

toHtmlString

public String toHtmlString()


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