cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class ItemMessage.ItemLocalMessage

java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemLocal
          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemLocal
ItemLocal.ObjectDisappeared
 
Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemLocal
SimTime
 
Constructor Summary
ItemMessage.ItemLocalMessage()
           
 
Method Summary
 ItemMessage.ItemLocalMessage clone()
           
 UnrealId getId()
          Unique Id of the item.
 ItemMessage.ItemLocalMessage 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.
 java.lang.String toHtmlString()
           
 java.lang.String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemLocal
createDisappearEvent, getCompositeClass, getSimTime, setSimTime
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ItemMessage.ItemLocalMessage

public ItemMessage.ItemLocalMessage()
Method Detail

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