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

Package class diagram package 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:
cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject, cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalViewable, cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalWorldObject, ILocalGBViewable, 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  cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id
          Unique Id of 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(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id, boolean Visible)
          Creates new instance of the message Item.
 
Method Summary
 ItemLocalImpl clone()
           
 cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
          Unique Id of the item.
 ItemLocalImpl getLocal()
           
 cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject getShared()
           
 cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject getStatic()
           
 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.
 String toHtmlString()
           
 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 cz.cuni.amis.pogamut.unreal.communication.messages.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.

Constructor Detail

ItemLocalImpl

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


ItemLocalImpl

public ItemLocalImpl(cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId Id,
                     boolean Visible)
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.

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 cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalWorldObject
Specified by:
clone in class ItemLocal

getId

public cz.cuni.amis.pogamut.unreal.communication.messages.UnrealId getId()
Unique Id of the item. This Id represents just item on the map, not in our inventory.

Specified by:
getId in interface cz.cuni.amis.pogamut.base.communication.worldview.object.IWorldObject
Specified by:
getId in class ItemLocal

isVisible

public boolean isVisible()
If the item is in the field of view of the bot.

Specified by:
isVisible in interface cz.cuni.amis.pogamut.multi.communication.worldview.object.ILocalViewable
Specified by:
isVisible in class ItemLocal

getLocal

public ItemLocalImpl getLocal()
Overrides:
getLocal in class ItemLocal

getShared

public cz.cuni.amis.pogamut.multi.communication.worldview.object.ISharedWorldObject getShared()
Overrides:
getShared in class ItemLocal

getStatic

public cz.cuni.amis.pogamut.multi.communication.worldview.object.IStaticWorldObject getStatic()
Overrides:
getStatic in class ItemLocal

toString

public String toString()
Overrides:
toString in class ItemLocal

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class ItemLocal


Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.