public class ItemStaticImpl extends ItemStatic
Modifier and Type | Class and Description |
---|---|
static class |
ItemStaticImpl.ItemStaticUpdate |
Modifier and Type | Field and Description |
---|---|
protected int |
Amount
If this item is some ammo or health pack, here we can find
out how much of the attribute this item will add.
|
protected ItemDescriptor |
Descriptor
Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.
|
protected UnrealId |
Id
Unique Id of the item.
|
protected NavPoint |
NavPoint
If the Item is not dropped then it's item that is laying at some navpoint and
this is that NavPoint instance.
|
protected UnrealId |
NavPointId
Id of the navpoint where the item is laying.
|
protected ItemType |
Type
Class of the item (e.g.
|
SimTime
Constructor and Description |
---|
ItemStaticImpl()
Parameter-less contructor for the message.
|
ItemStaticImpl(Item original)
Cloning constructor from the full message.
|
ItemStaticImpl(ItemStatic original)
Cloning constructor from the message part.
|
ItemStaticImpl(ItemStaticImpl original)
Cloning constructor from the full message.
|
ItemStaticImpl(UnrealId Id,
UnrealId NavPointId,
NavPoint NavPoint,
int Amount,
ItemType Type,
ItemDescriptor Descriptor)
Creates new instance of the message Item.
|
Modifier and Type | Method and Description |
---|---|
ItemStaticImpl |
clone() |
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.
|
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.
|
ItemType |
getType()
Class of the item (e.g.
|
boolean |
isDifferentFrom(IStaticWorldObject other) |
void |
setNavPoint(NavPoint navPoint)
DO NOT USE THIS METHOD! Reserved for GaviaLib (Pogamut core)! It's used
to set correct navpoint instance into the item.
|
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 UnrealId NavPointId
protected NavPoint NavPoint
protected int Amount
protected ItemType Type
protected ItemDescriptor Descriptor
public ItemStaticImpl()
public ItemStaticImpl(UnrealId Id, UnrealId NavPointId, NavPoint NavPoint, int Amount, ItemType Type, ItemDescriptor Descriptor)
Id
- Unique Id of the item. This Id represents just item on the
map, not in our inventory.NavPointId
- Id of the navpoint where the item is laying. If null - the item was dropped by the bot or another player.NavPoint
- If the Item is not dropped then it's item that is laying at some navpoint and
this is that NavPoint instance.Amount
- If this item is some ammo or health pack, here we can find
out how much of the attribute this item will add.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 ItemStaticImpl(Item original)
original
- public ItemStaticImpl(ItemStaticImpl original)
original
- public ItemStaticImpl(ItemStatic original)
original
- public void setSimTime(long SimTime)
ItemStatic
setSimTime
in class ItemStatic
public ItemStaticImpl clone()
clone
in class ItemStatic
public UnrealId getId()
getId
in interface IWorldObject
getId
in class ItemStatic
public UnrealId getNavPointId()
getNavPointId
in class ItemStatic
public NavPoint getNavPoint()
getNavPoint
in class ItemStatic
public int getAmount()
getAmount
in class ItemStatic
public ItemType getType()
getType
in class ItemStatic
public ItemDescriptor getDescriptor()
getDescriptor
in class ItemStatic
public boolean isDifferentFrom(IStaticWorldObject other)
isDifferentFrom
in interface IStaticWorldObject
isDifferentFrom
in class ItemStatic
public String toString()
toString
in class ItemStatic
public String toHtmlString()
toHtmlString
in class ItemStatic
public void setNavPoint(NavPoint navPoint)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.