public class MyInventoryCompositeImpl extends MyInventory
MyInventory.MyInventoryUpdate
Modifier and Type | Field and Description |
---|---|
protected MyInventoryLocalImpl |
partLocal |
protected MyInventoryStaticImpl |
partStatic |
PROTOTYPE, SimTime
Constructor and Description |
---|
MyInventoryCompositeImpl()
Parameter-less contructor for the message.
|
MyInventoryCompositeImpl(MyInventoryCompositeImpl original)
Cloning constructor.
|
MyInventoryCompositeImpl(MyInventoryLocalImpl partLocal,
MyInventorySharedImpl partShared,
MyInventoryStaticImpl partStatic)
Composite-impl constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getAmount()
If this item is ammo or armor, this holds the amount of the item the player has.
|
int |
getCurrentAltAmmo()
If this item is a weapon, this holds the amount of secondary ammo.
|
int |
getCurrentAmmo()
If this item is a weapon, this holds the amount of primary ammo.
|
ItemDescriptor |
getDescriptor()
Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.
|
cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId |
getId()
Unique Id of the item.
|
MyInventoryLocal |
getLocal() |
MyInventoryShared |
getShared() |
MyInventoryStatic |
getStatic() |
ItemType |
getType()
Class of the item (e.g.
|
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.
|
String |
toHtmlString() |
String |
toString() |
getSimTime
protected MyInventoryStaticImpl partStatic
protected MyInventoryLocalImpl partLocal
public MyInventoryCompositeImpl()
public MyInventoryCompositeImpl(MyInventoryLocalImpl partLocal, MyInventorySharedImpl partShared, MyInventoryStaticImpl partStatic)
partLocal
- local-part of the messagepartShared
- shared-part of the messagepartStatic
- static-part of the messagepublic MyInventoryCompositeImpl(MyInventoryCompositeImpl original)
original
- public void setSimTime(long SimTime)
MyInventory
setSimTime
in class MyInventory
public MyInventoryStatic getStatic()
public MyInventoryLocal getLocal()
public MyInventoryShared getShared()
public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
MyInventory
getId
in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
getId
in class MyInventory
public int getCurrentAmmo()
MyInventory
getCurrentAmmo
in class MyInventory
public int getCurrentAltAmmo()
MyInventory
getCurrentAltAmmo
in class MyInventory
public int getAmount()
MyInventory
getAmount
in class MyInventory
public ItemType getType()
MyInventory
getType
in class MyInventory
public ItemDescriptor getDescriptor()
MyInventory
getDescriptor
in class MyInventory
public String toString()
toString
in class MyInventory
public String toHtmlString()
toHtmlString
in class MyInventory
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.