public class ItemMessage extends Item implements IWorldObjectUpdatedEvent, ICompositeWorldObjectUpdatedEvent
| Modifier and Type | Class and Description |
|---|---|
class |
ItemMessage.ItemLocalMessage
Implementation of the local part of the GameBots2004 message INV, used
to facade INVMessage.
|
class |
ItemMessage.ItemSharedMessage
Implementation of the shared part of the GameBots2004 message INV, used
to facade INVMessage.
|
class |
ItemMessage.ItemStaticMessage
Implementation of the static part of the GameBots2004 message INV, used
to facade INVMessage.
|
Item.ItemUpdate, Item.ObjectDisappearedIWorldObjectUpdatedEvent.DestroyWorldObject| 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 boolean |
Amount_Set
Whether property 'Amount' 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 boolean |
Dropped
Whether it is regular item or one dropped by some bot (usually during dying).
|
protected boolean |
Dropped_Set
Whether property 'Dropped' was received from GB2004.
|
protected UnrealId |
Id
Unique Id of the item.
|
protected boolean |
Id_Set
Whether property 'Id' was received from GB2004.
|
protected Location |
Location
Location of the item.
|
protected boolean |
Location_Set
Whether property 'Location' was received from GB2004.
|
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 boolean |
NavPoint_Set
Whether property 'NavPoint' was received from GB2004.
|
protected UnrealId |
NavPointId
Id of the navpoint where the item is laying.
|
protected boolean |
NavPointId_Set
Whether property 'NavPointId' 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.
|
protected boolean |
Visible
If the item is in the field of view of the bot.
|
protected boolean |
Visible_Set
Whether property 'Visible' was received from GB2004.
|
| Constructor and Description |
|---|
ItemMessage()
Parameter-less contructor for the message.
|
ItemMessage(ItemMessage original)
Cloning constructor from the full message.
|
ItemMessage(UnrealId Id,
UnrealId NavPointId,
NavPoint NavPoint,
boolean Visible,
Location Location,
int Amount,
ItemType Type,
ItemDescriptor Descriptor,
boolean Dropped)
Creates new instance of the message Item.
|
| 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() |
ILocalWorldObjectUpdatedEvent |
getLocalEvent() |
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() |
ISharedWorldObjectUpdatedEvent |
getSharedEvent() |
ItemStatic |
getStatic() |
IStaticWorldObjectUpdatedEvent |
getStaticEvent() |
ITeamId |
getTeamId() |
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 |
setNavPoint(NavPoint navPoint)
DO NOT USE THIS METHOD! Reserved for GaviaLib (Pogamut core)! It's used
to set correct navpoint instance into the item.
|
protected void |
setTeamId(ITeamId TeamId)
Used by Yylex to slip corretn TeamId.
|
String |
toHtmlString() |
String |
toString() |
IWorldObjectUpdateResult<IWorldObject> |
update(IWorldObject object) |
createDisappearEvent, getSimTime, setSimTime, toJsonLiteralclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSimTimeprotected ITeamId TeamId
protected UnrealId Id
protected boolean Id_Set
protected UnrealId NavPointId
protected boolean NavPointId_Set
protected NavPoint NavPoint
protected boolean NavPoint_Set
protected boolean Visible
protected boolean Visible_Set
protected Location Location
protected boolean Location_Set
protected int Amount
protected boolean Amount_Set
protected ItemType Type
protected boolean Type_Set
protected ItemDescriptor Descriptor
protected boolean Descriptor_Set
protected boolean Dropped
protected boolean Dropped_Set
public ItemMessage()
public ItemMessage(UnrealId Id, UnrealId NavPointId, NavPoint NavPoint, boolean Visible, Location Location, int Amount, ItemType Type, ItemDescriptor Descriptor, boolean Dropped)
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.Visible - If the item is in the field of view of the bot.Location - Location of the item.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.Dropped - Whether it is regular item or one dropped by some bot (usually during dying). Items that are not dropped
usually respawns itself (depends on the game settings) while those that are dropped may be taken only once.public ItemMessage(ItemMessage original)
original - protected void setTeamId(ITeamId TeamId)
public ITeamId getTeamId()
public UnrealId getId()
ItemgetId in interface IWorldObjectUpdatedEventgetId in interface IWorldObjectgetId in interface ICompositeWorldObjectUpdatedEventgetId 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 ItemLocal getLocal()
getLocal in interface ICompositeWorldObjectpublic ItemShared getShared()
getShared in interface ICompositeWorldObjectpublic ItemStatic 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 toHtmlString()
toHtmlString in class Itempublic void setNavPoint(NavPoint navPoint)
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.