public class MyInventoryMessage extends MyInventory implements IWorldObjectUpdatedEvent, ICompositeWorldObjectUpdatedEvent
| Modifier and Type | Class and Description |
|---|---|
class |
MyInventoryMessage.MyInventoryLocalMessage
Implementation of the local part of the GameBots2004 message MYINV, used
to facade MYINVMessage.
|
class |
MyInventoryMessage.MyInventorySharedMessage
Implementation of the shared part of the GameBots2004 message MYINV, used
to facade MYINVMessage.
|
class |
MyInventoryMessage.MyInventoryStaticMessage
Implementation of the static part of the GameBots2004 message MYINV, used
to facade MYINVMessage.
|
MyInventory.MyInventoryUpdateIWorldObjectUpdatedEvent.DestroyWorldObject| Modifier and Type | Field and Description |
|---|---|
protected int |
Amount
If this item is ammo or armor, this holds the amount of the item the player has.
|
protected boolean |
Amount_Set
Whether property 'Amount' was received from GB2004.
|
protected int |
CurrentAltAmmo
If this item is a weapon, this holds the amount of secondary ammo.
|
protected boolean |
CurrentAltAmmo_Set
Whether property 'CurrentAltAmmo' was received from GB2004.
|
protected int |
CurrentAmmo
If this item is a weapon, this holds the amount of primary ammo.
|
protected boolean |
CurrentAmmo_Set
Whether property 'CurrentAmmo' was received from GB2004.
|
protected ItemDescriptor |
Descriptor
Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.
|
protected boolean |
Descriptor_Set
Whether property 'Descriptor' was received from GB2004.
|
protected UnrealId |
Id
Unique Id of the item.
|
protected boolean |
Id_Set
Whether property 'Id' was received from GB2004.
|
protected ITeamId |
TeamId |
protected ItemType |
Type
Class of the item (e.g.
|
protected boolean |
Type_Set
Whether property 'Type' was received from GB2004.
|
PROTOTYPE, SimTime| Constructor and Description |
|---|
MyInventoryMessage()
Parameter-less contructor for the message.
|
MyInventoryMessage(MyInventoryMessage original)
Cloning constructor from the full message.
|
MyInventoryMessage(UnrealId Id,
int CurrentAmmo,
int CurrentAltAmmo,
int Amount,
ItemType Type,
ItemDescriptor Descriptor)
Creates new instance of the message MyInventory.
|
| 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.
|
UnrealId |
getId()
Unique Id of the item.
|
MyInventoryLocal |
getLocal() |
ILocalWorldObjectUpdatedEvent |
getLocalEvent() |
MyInventoryShared |
getShared() |
ISharedWorldObjectUpdatedEvent |
getSharedEvent() |
MyInventoryStatic |
getStatic() |
IStaticWorldObjectUpdatedEvent |
getStaticEvent() |
ITeamId |
getTeamId() |
ItemType |
getType()
Class of the item (e.g.
|
protected void |
setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId.
|
String |
toHtmlString() |
String |
toString() |
IWorldObjectUpdateResult<IWorldObject> |
update(IWorldObject object) |
getSimTime, setSimTime, toJsonLiteralclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSimTimeprotected ITeamId TeamId
protected UnrealId Id
protected boolean Id_Set
protected int CurrentAmmo
protected boolean CurrentAmmo_Set
protected int CurrentAltAmmo
protected boolean CurrentAltAmmo_Set
protected int Amount
protected boolean Amount_Set
protected ItemType Type
protected boolean Type_Set
protected ItemDescriptor Descriptor
protected boolean Descriptor_Set
public MyInventoryMessage()
public MyInventoryMessage(UnrealId Id, int CurrentAmmo, int CurrentAltAmmo, int Amount, ItemType Type, ItemDescriptor Descriptor)
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.Type - Class of the item (e.g. xWeapons.FlakCannonPickup).Descriptor - Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.public MyInventoryMessage(MyInventoryMessage original)
original - protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
MyInventorygetId in interface IWorldObjectUpdatedEventgetId in interface IWorldObjectgetId in interface ICompositeWorldObjectUpdatedEventgetId in class MyInventorypublic int getCurrentAmmo()
MyInventorygetCurrentAmmo in class MyInventorypublic int getCurrentAltAmmo()
MyInventorygetCurrentAltAmmo in class MyInventorypublic int getAmount()
MyInventorygetAmount in class MyInventorypublic ItemType getType()
MyInventorygetType in class MyInventorypublic ItemDescriptor getDescriptor()
MyInventorygetDescriptor in class MyInventorypublic MyInventoryLocal getLocal()
getLocal in interface ICompositeWorldObjectpublic MyInventoryShared getShared()
getShared in interface ICompositeWorldObjectpublic MyInventoryStatic getStatic()
getStatic in interface ICompositeWorldObjectpublic IWorldObjectUpdateResult<IWorldObject> update(IWorldObject object)
update in interface IWorldObjectUpdatedEventpublic ILocalWorldObjectUpdatedEvent getLocalEvent()
getLocalEvent in interface ICompositeWorldObjectUpdatedEventpublic ISharedWorldObjectUpdatedEvent getSharedEvent()
getSharedEvent in interface ICompositeWorldObjectUpdatedEventpublic IStaticWorldObjectUpdatedEvent getStaticEvent()
getStaticEvent in interface ICompositeWorldObjectUpdatedEventpublic String toString()
toString in class MyInventorypublic String toHtmlString()
toHtmlString in class MyInventoryCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.