public class ItemCompositeImpl extends Item
Item.ItemUpdate, Item.ObjectDisappeared| Modifier and Type | Field and Description |
|---|---|
protected ItemLocalImpl |
partLocal |
protected ItemStaticImpl |
partStatic |
| Constructor and Description |
|---|
ItemCompositeImpl()
Parameter-less contructor for the message.
|
ItemCompositeImpl(ItemCompositeImpl original)
Cloning constructor.
|
ItemCompositeImpl(ItemLocalImpl partLocal,
ItemSharedImpl partShared,
ItemStaticImpl partStatic)
Composite-impl constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAmount()
If this item is some ammo or health pack, here we can find
out how much of the attribute this item will add.
|
ItemDescriptor |
getDescriptor()
Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.
|
UnrealId |
getId()
Unique Id of the item.
|
ItemLocal |
getLocal() |
Location |
getLocation()
Location of the item.
|
NavPoint |
getNavPoint()
If the Item is not dropped then it's item that is laying at some navpoint and
this is that NavPoint instance.
|
UnrealId |
getNavPointId()
Id of the navpoint where the item is laying.
|
ItemShared |
getShared() |
ItemStatic |
getStatic() |
ItemType |
getType()
Class of the item (e.g.
|
boolean |
isDropped()
Whether it is regular item or one dropped by some bot (usually during dying).
|
boolean |
isVisible()
If the item is in the field of view of the bot.
|
void |
setSimTime(long SimTime)
Used by Yylex to slip correct time of the object or programmatically.
|
String |
toHtmlString() |
String |
toString() |
createDisappearEvent, getSimTime, toJsonLiteralprotected ItemStaticImpl partStatic
protected ItemLocalImpl partLocal
public ItemCompositeImpl()
public ItemCompositeImpl(ItemLocalImpl partLocal, ItemSharedImpl partShared, ItemStaticImpl partStatic)
partLocal - local-part of the messagepartShared - shared-part of the messagepartStatic - static-part of the messagepublic ItemCompositeImpl(ItemCompositeImpl original)
original - public void setSimTime(long SimTime)
ItemsetSimTime in class Itempublic ItemStatic getStatic()
public ItemLocal getLocal()
public ItemShared getShared()
public UnrealId getId()
ItemgetId in interface IWorldObjectgetId in class Itempublic UnrealId getNavPointId()
ItemgetNavPointId in class Itempublic NavPoint getNavPoint()
ItemgetNavPoint in class Itempublic boolean isVisible()
Itempublic Location getLocation()
ItemgetLocation in interface ILocatedgetLocation in class Itempublic int getAmount()
Itempublic ItemType getType()
Itempublic ItemDescriptor getDescriptor()
ItemgetDescriptor in class Itempublic boolean isDropped()
Itempublic String toHtmlString()
toHtmlString in class ItemCopyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.