public class AddInventoryMsg extends GBEvent implements IWorldEvent, IWorldChangeEvent
| Modifier and Type | Field and Description |
|---|---|
protected ItemDescriptor |
Descriptor
Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.
|
protected UnrealId |
Id
A unique Id for this inventory item, assigned by the game.
|
protected ItemType |
PickupType
We get this item if we pick up this pickup class in the map.
|
static String |
PROTOTYPE
Example how the message looks like - used during parser tests.
|
protected String |
Type
A string representing type (inventory type) of the object.
|
| Constructor and Description |
|---|
AddInventoryMsg()
Used by Yylex to create empty message then to fill it's protected fields (Yylex is in the same package).
|
AddInventoryMsg(AddInventoryMsg original)
Cloning constructor.
|
AddInventoryMsg(UnrealId Id,
String Type,
ItemDescriptor Descriptor,
ItemType PickupType)
Creates new instance of command AddInventoryMsg.
|
| Modifier and Type | Method and Description |
|---|---|
ItemDescriptor |
getDescriptor()
Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.
|
UnrealId |
getId()
A unique Id for this inventory item, assigned by the game.
|
ItemType |
getPickupType()
We get this item if we pick up this pickup class in the map.
|
long |
getSimTime() |
String |
getType()
A string representing type (inventory type) of the object.
|
String |
toHtmlString() |
String |
toString() |
getWorldEventtoJsonLiteralpublic static final String PROTOTYPE
protected UnrealId Id
protected String Type
protected ItemDescriptor Descriptor
protected ItemType PickupType
public AddInventoryMsg(UnrealId Id, String Type, ItemDescriptor Descriptor, ItemType PickupType)
Id - A unique Id for this inventory item, assigned by the game.
Unique, but based on a string describing the item type.Type - A string representing type (inventory type) of the object.Descriptor - Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.PickupType - We get this item if we pick up this pickup class in the map.public AddInventoryMsg(AddInventoryMsg original)
public AddInventoryMsg()
public UnrealId getId()
public String getType()
public ItemDescriptor getDescriptor()
public ItemType getPickupType()
public long getSimTime()
getSimTime in interface IWorldChangeEventgetSimTime in interface IWorldEventgetSimTime in class GBEventpublic String toString()
toString in class InfoMessagepublic String toHtmlString()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.