cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class ItemMessage.ItemLocalMessage
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.ItemMessage.ItemLocalMessage
- All Implemented Interfaces:
- IWorldObject, ILocalViewable, ILocalWorldObject, ILocalGBViewable, java.lang.Cloneable
- Enclosing class:
- ItemMessage
public class ItemMessage.ItemLocalMessage
- extends ItemLocal
Implementation of the local part of the GameBots2004 message INV, used
to facade INVMessage.
Complete message documentation:
Synchronous/asynchronous message. An object on the ground that
can be picked up.
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemLocal |
SimTime |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ItemMessage.ItemLocalMessage
public ItemMessage.ItemLocalMessage()
clone
public ItemMessage.ItemLocalMessage clone()
- Specified by:
clone
in interface ILocalWorldObject
- Specified by:
clone
in class ItemLocal
getLocal
public ItemMessage.ItemLocalMessage getLocal()
- Overrides:
getLocal
in class ItemLocal
getShared
public ISharedWorldObject getShared()
- Overrides:
getShared
in class ItemLocal
getStatic
public IStaticWorldObject getStatic()
- Overrides:
getStatic
in class ItemLocal
getId
public UnrealId getId()
- Unique Id of the item. This Id represents just item on the
map, not in our inventory.
- Specified by:
getId
in interface IWorldObject
- Specified by:
getId
in class ItemLocal
- Returns:
isVisible
public boolean isVisible()
- If the item is in the field of view of the bot.
- Specified by:
isVisible
in interface ILocalViewable
- Specified by:
isVisible
in class ItemLocal
- Returns:
isReachable
public boolean isReachable()
- True if agent can reach the item.
- Specified by:
isReachable
in class ItemLocal
toString
public java.lang.String toString()
- Overrides:
toString
in class ItemLocal
toHtmlString
public java.lang.String toHtmlString()
- Overrides:
toHtmlString
in class ItemLocal