|
|||||||||
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.ItemLocal cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemLocalImpl
public class ItemLocalImpl
Implementation of the local 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 |
ItemLocalImpl.ItemLocalUpdate
|
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemLocal |
---|
ItemLocal.ObjectDisappeared |
Field Summary | |
---|---|
protected UnrealId |
Id
Unique Id of the item. |
protected boolean |
Reachable
True if agent can reach the item. |
protected boolean |
Visible
If the item is in the field of view of the bot. |
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemLocal |
---|
SimTime |
Constructor Summary | |
---|---|
ItemLocalImpl()
Parameter-less contructor for the message. |
|
ItemLocalImpl(Item original)
Cloning constructor from the full message. |
|
ItemLocalImpl(ItemLocal original)
Cloning constructor from the message part. |
|
ItemLocalImpl(ItemLocalImpl original)
Cloning constructor from the full message. |
|
ItemLocalImpl(UnrealId Id,
boolean Visible,
boolean Reachable)
Creates new instance of the message Item. |
Method Summary | |
---|---|
ItemLocalImpl |
clone()
|
UnrealId |
getId()
Unique Id of the item. |
ItemLocalImpl |
getLocal()
|
ISharedWorldObject |
getShared()
|
IStaticWorldObject |
getStatic()
|
boolean |
isReachable()
True if agent can reach the item. |
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. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toString()
|
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemLocal |
---|
createDisappearEvent, getCompositeClass, getSimTime |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected UnrealId Id
protected boolean Visible
protected boolean Reachable
Constructor Detail |
---|
public ItemLocalImpl()
public ItemLocalImpl(UnrealId Id, boolean Visible, boolean Reachable)
Id
- Unique Id of the item. This Id represents just item on the
map, not in our inventory.Visible
- If the item is in the field of view of the bot.Reachable
- True if agent can reach the item.public ItemLocalImpl(Item original)
original
- public ItemLocalImpl(ItemLocalImpl original)
original
- public ItemLocalImpl(ItemLocal original)
original
- Method Detail |
---|
public void setSimTime(long SimTime)
ItemLocal
setSimTime
in class ItemLocal
public ItemLocalImpl clone()
clone
in interface ILocalWorldObject
clone
in class ItemLocal
public UnrealId getId()
getId
in interface IWorldObject
getId
in class ItemLocal
public boolean isVisible()
isVisible
in interface ILocalViewable
isVisible
in class ItemLocal
public boolean isReachable()
isReachable
in class ItemLocal
public ItemLocalImpl getLocal()
getLocal
in class ItemLocal
public ISharedWorldObject getShared()
getShared
in class ItemLocal
public IStaticWorldObject getStatic()
getStatic
in class ItemLocal
public java.lang.String toString()
toString
in class ItemLocal
public java.lang.String toHtmlString()
toHtmlString
in class ItemLocal
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |