public class MyInventoryLocalImpl extends MyInventoryLocal
Modifier and Type | Class and Description |
---|---|
static class |
MyInventoryLocalImpl.MyInventoryLocalUpdate |
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 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.
|
SimTime
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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() |
getCompositeClass, getSimTime
toJsonLiteral
protected UnrealId Id
protected int CurrentAmmo
protected int CurrentAltAmmo
protected int Amount
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
- public void setSimTime(long SimTime)
MyInventoryLocal
setSimTime
in class MyInventoryLocal
public MyInventoryLocalImpl clone()
clone
in interface ILocalWorldObject
clone
in class MyInventoryLocal
public UnrealId getId()
getId
in interface IWorldObject
getId
in class MyInventoryLocal
public int getCurrentAmmo()
getCurrentAmmo
in class MyInventoryLocal
public int getCurrentAltAmmo()
getCurrentAltAmmo
in class MyInventoryLocal
public int getAmount()
getAmount
in class MyInventoryLocal
public MyInventoryLocalImpl getLocal()
getLocal
in class MyInventoryLocal
public ISharedWorldObject getShared()
getShared
in class MyInventoryLocal
public IStaticWorldObject getStatic()
getStatic
in class MyInventoryLocal
public String toString()
toString
in class MyInventoryLocal
public String toHtmlString()
toHtmlString
in class MyInventoryLocal
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.