|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.InfoMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventory cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryCompositeImpl
public class MyInventoryCompositeImpl
Composite implementation of the MYINV abstract message. It wraps Local/Shared/Static parts in single object allowing to presenting a nice facade for users.
Complete message documentation: An object in the observed player's inventory.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventory |
---|
MyInventory.MyInventoryUpdate |
Field Summary | |
---|---|
protected MyInventoryLocalImpl |
partLocal
|
protected MyInventoryStaticImpl |
partStatic
|
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventory |
---|
PROTOTYPE, SimTime |
Constructor Summary | |
---|---|
MyInventoryCompositeImpl()
Parameter-less contructor for the message. |
|
MyInventoryCompositeImpl(MyInventoryCompositeImpl original)
Cloning constructor. |
|
MyInventoryCompositeImpl(MyInventoryLocalImpl partLocal,
MyInventorySharedImpl partShared,
MyInventoryStaticImpl partStatic)
Composite-impl constructor. |
Method Summary | |
---|---|
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. |
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. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventory |
---|
getSimTime |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected MyInventoryStaticImpl partStatic
protected MyInventoryLocalImpl partLocal
Constructor Detail |
---|
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
- Method Detail |
---|
public void setSimTime(long SimTime)
MyInventory
setSimTime
in class MyInventory
public MyInventoryStatic getStatic()
public MyInventoryLocal getLocal()
public MyInventoryShared getShared()
public UnrealId getId()
MyInventory
getId
in interface 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 java.lang.String toString()
toString
in class MyInventory
public java.lang.String toHtmlString()
toHtmlString
in class MyInventory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |