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

Package class diagram package 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, 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 isVisible()
          If the item is in the field of view of the bot.
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemLocal
createDisappearEvent, getCompositeClass, getSimTime, setSimTime
 
Methods inherited from class cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
toJsonLiteral
 
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

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

toString

public String toString()
Overrides:
toString in class ItemLocal

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class ItemLocal


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