public abstract class MyInventoryLocal extends InfoMessage implements ILocalWorldObject
Modifier and Type | Field and Description |
---|---|
protected long |
SimTime |
Constructor and Description |
---|
MyInventoryLocal()
Parameter-less contructor for the message.
|
Modifier and Type | Method and Description |
---|---|
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() |
toJsonLiteral
public MyInventoryLocal()
public long getSimTime()
getSimTime
in interface IWorldObject
protected void setSimTime(long SimTime)
public abstract MyInventoryLocal clone()
clone
in interface ILocalWorldObject
clone
in class Object
public Class getCompositeClass()
getCompositeClass
in interface ILocalWorldObject
public abstract UnrealId getId()
getId
in interface IWorldObject
public abstract int getCurrentAmmo()
public abstract int getCurrentAltAmmo()
public abstract int getAmount()
public MyInventoryLocal getLocal()
public ISharedWorldObject getShared()
public IStaticWorldObject getStatic()
public String toString()
toString
in class InfoMessage
public String toHtmlString()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.