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

Package class diagram package ItemMessage.ItemStaticMessage
java.lang.Object
  extended by cz.cuni.amis.pogamut.base.communication.messages.InfoMessage
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemStatic
          extended by cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemMessage.ItemStaticMessage
All Implemented Interfaces:
IWorldObject, IStaticWorldObject
Enclosing class:
ItemMessage

public class ItemMessage.ItemStaticMessage
extends ItemStatic

Implementation of the static 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.


Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemStatic
SimTime
 
Constructor Summary
ItemMessage.ItemStaticMessage()
           
 
Method Summary
 ItemMessage.ItemStaticMessage clone()
           
 int getAmount()
          If this item is some ammo or health pack, here we can find out how much of the attribute this item will add.
 ItemDescriptor getDescriptor()
          Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.
 UnrealId getId()
          Unique Id of the item.
 NavPoint getNavPoint()
          If the Item is not dropped then it's item that is laying at some navpoint and this is that NavPoint instance.
 UnrealId getNavPointId()
          Id of the navpoint where the item is laying.
 ItemType getType()
          Class of the item (e.g.
 boolean isDifferentFrom(IStaticWorldObject other)
           
 String toHtmlString()
           
 String toString()
           
 
Methods inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.ItemStatic
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.ItemStaticMessage

public ItemMessage.ItemStaticMessage()
Method Detail

clone

public ItemMessage.ItemStaticMessage clone()
Specified by:
clone in class ItemStatic

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 ItemStatic

getNavPointId

public UnrealId getNavPointId()
Id of the navpoint where the item is laying. If null - the item was dropped by the bot or another player.

Specified by:
getNavPointId in class ItemStatic

getNavPoint

public NavPoint getNavPoint()
If the Item is not dropped then it's item that is laying at some navpoint and this is that NavPoint instance.

Specified by:
getNavPoint in class ItemStatic

getAmount

public int getAmount()
If this item is some ammo or health pack, here we can find out how much of the attribute this item will add.

Specified by:
getAmount in class ItemStatic

getType

public ItemType getType()
Class of the item (e.g. xWeapons.FlakCannonPickup).

Specified by:
getType in class ItemStatic

getDescriptor

public ItemDescriptor getDescriptor()
Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.

Specified by:
getDescriptor in class ItemStatic

isDifferentFrom

public boolean isDifferentFrom(IStaticWorldObject other)
Specified by:
isDifferentFrom in interface IStaticWorldObject
Overrides:
isDifferentFrom in class ItemStatic

toString

public String toString()
Overrides:
toString in class ItemStatic

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class ItemStatic


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