|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectcz.cuni.amis.pogamut.base.communication.messages.InfoMessage
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryLocal
cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryLocalImpl
public class MyInventoryLocalImpl
Implementation of the local part of the GameBots2004 message MYINV.
Complete message documentation: An object in the observed player's inventory.
| Nested Class Summary | |
|---|---|
static class |
MyInventoryLocalImpl.MyInventoryLocalUpdate
|
| Field Summary | |
|---|---|
protected int |
Amount
If this item is ammo or armor, this holds the amount of the item the player has. |
protected int |
CurrentAltAmmo
If this item is a weapon, this holds the amount of secondary ammo. |
protected int |
CurrentAmmo
If this item is a weapon, this holds the amount of primary ammo. |
protected UnrealId |
Id
Unique Id of the item. |
| Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryLocal |
|---|
SimTime |
| Constructor Summary | |
|---|---|
MyInventoryLocalImpl()
Parameter-less contructor for the message. |
|
MyInventoryLocalImpl(MyInventory original)
Cloning constructor from the full message. |
|
MyInventoryLocalImpl(MyInventoryLocal original)
Cloning constructor from the message part. |
|
MyInventoryLocalImpl(MyInventoryLocalImpl original)
Cloning constructor from the full message. |
|
MyInventoryLocalImpl(UnrealId Id,
int CurrentAmmo,
int CurrentAltAmmo,
int Amount)
Creates new instance of the message MyInventory. |
|
| Method Summary | |
|---|---|
MyInventoryLocalImpl |
clone()
|
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. |
UnrealId |
getId()
Unique Id of the item. |
MyInventoryLocalImpl |
getLocal()
|
ISharedWorldObject |
getShared()
|
IStaticWorldObject |
getStatic()
|
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.ut2004.communication.messages.gbinfomessages.MyInventoryLocal |
|---|
getCompositeClass, getSimTime |
| 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 |
|---|
protected UnrealId Id
protected int CurrentAmmo
protected int CurrentAltAmmo
protected int Amount
| Constructor Detail |
|---|
public MyInventoryLocalImpl()
public MyInventoryLocalImpl(UnrealId Id,
int CurrentAmmo,
int CurrentAltAmmo,
int Amount)
Id - Unique Id of the item. This Id represents the item in the inventory.CurrentAmmo - If this item is a weapon, this holds the amount of primary ammo.CurrentAltAmmo - If this item is a weapon, this holds the amount of secondary ammo.Amount - If this item is ammo or armor, this holds the amount of the item the player has.public MyInventoryLocalImpl(MyInventory original)
original - public MyInventoryLocalImpl(MyInventoryLocalImpl original)
original - public MyInventoryLocalImpl(MyInventoryLocal original)
original - | Method Detail |
|---|
public void setSimTime(long SimTime)
MyInventoryLocal
setSimTime in class MyInventoryLocalpublic MyInventoryLocalImpl clone()
clone in interface ILocalWorldObjectclone in class MyInventoryLocalpublic UnrealId getId()
getId in interface IWorldObjectgetId in class MyInventoryLocalpublic int getCurrentAmmo()
getCurrentAmmo in class MyInventoryLocalpublic int getCurrentAltAmmo()
getCurrentAltAmmo in class MyInventoryLocalpublic int getAmount()
getAmount in class MyInventoryLocalpublic MyInventoryLocalImpl getLocal()
getLocal in class MyInventoryLocalpublic ISharedWorldObject getShared()
getShared in class MyInventoryLocalpublic IStaticWorldObject getStatic()
getStatic in class MyInventoryLocalpublic String toString()
toString in class MyInventoryLocalpublic String toHtmlString()
toHtmlString in class MyInventoryLocal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||