|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.InfoMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemStatic cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemStaticImpl
public class ItemStaticImpl
Implementation of the static part of the GameBots2004 message INV.
Complete message documentation: Synchronous/asynchronous message. An object on the ground that can be picked up.
Nested Class Summary | |
---|---|
static class |
ItemStaticImpl.ItemStaticUpdate
|
Field Summary | |
---|---|
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. |
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemStatic |
---|
SimTime |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
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. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemStatic |
---|
getCompositeClass, getSimTime |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected UnrealId Id
protected UnrealId NavPointId
protected NavPoint NavPoint
protected int Amount
protected ItemType Type
protected ItemDescriptor Descriptor
Constructor Detail |
---|
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
- Method Detail |
---|
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 java.lang.String toString()
toString
in class ItemStatic
public java.lang.String toHtmlString()
toHtmlString
in class ItemStatic
public void setNavPoint(NavPoint navPoint)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |