cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class ItemLocalImpl

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.ItemLocalImpl
All Implemented Interfaces:
IWorldObject, ILocalViewable, ILocalWorldObject, ILocalGBViewable, java.lang.Cloneable

public class ItemLocalImpl
extends ItemLocal

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

Id

protected UnrealId Id
Unique Id of the item. This Id represents just item on the map, not in our inventory.


Visible

protected boolean Visible
If the item is in the field of view of the bot.


Reachable

protected boolean Reachable
True if agent can reach the item.

Constructor Detail

ItemLocalImpl

public ItemLocalImpl()
Parameter-less contructor for the message.


ItemLocalImpl

public ItemLocalImpl(UnrealId Id,
                     boolean Visible,
                     boolean Reachable)
Creates new instance of the message Item. Synchronous/asynchronous message. An object on the ground that can be picked up. Corresponding GameBots message (local part) is INV.

Parameters:
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.

ItemLocalImpl

public ItemLocalImpl(Item original)
Cloning constructor from the full message.

Parameters:
original -

ItemLocalImpl

public ItemLocalImpl(ItemLocalImpl original)
Cloning constructor from the full message.

Parameters:
original -

ItemLocalImpl

public ItemLocalImpl(ItemLocal original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

setSimTime

public void setSimTime(long SimTime)
Description copied from class: ItemLocal
Used by Yylex to slip correct time of the object or programmatically.

Overrides:
setSimTime in class ItemLocal

clone

public ItemLocalImpl clone()
Specified by:
clone in interface ILocalWorldObject
Specified by:
clone 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

getLocal

public ItemLocalImpl getLocal()
Overrides:
getLocal in class ItemLocal

getShared

public ISharedWorldObject getShared()
Overrides:
getShared in class ItemLocal

getStatic

public IStaticWorldObject getStatic()
Overrides:
getStatic 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