cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages
Class MyInventoryMessage.MyInventoryStaticMessage

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

public class MyInventoryMessage.MyInventoryStaticMessage
extends MyInventoryStatic

Implementation of the static part of the GameBots2004 message MYINV, used to facade MYINVMessage.

Complete message documentation: An object in the observed player's inventory.


Field Summary
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryStatic
SimTime
 
Constructor Summary
MyInventoryMessage.MyInventoryStaticMessage()
           
 
Method Summary
 MyInventoryMessage.MyInventoryStaticMessage clone()
           
 ItemDescriptor getDescriptor()
          Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.
 UnrealId getId()
          Unique Id of the item.
 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.MyInventoryStatic
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

MyInventoryMessage.MyInventoryStaticMessage

public MyInventoryMessage.MyInventoryStaticMessage()
Method Detail

clone

public MyInventoryMessage.MyInventoryStaticMessage clone()
Specified by:
clone in class MyInventoryStatic

getId

public UnrealId getId()
Unique Id of the item. This Id represents the item in the inventory.

Specified by:
getId in interface IWorldObject
Specified by:
getId in class MyInventoryStatic

getType

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

Specified by:
getType in class MyInventoryStatic

getDescriptor

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

Specified by:
getDescriptor in class MyInventoryStatic

isDifferentFrom

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

toString

public String toString()
Overrides:
toString in class MyInventoryStatic

toHtmlString

public String toHtmlString()
Overrides:
toHtmlString in class MyInventoryStatic


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