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

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.MyInventoryStaticImpl
All Implemented Interfaces:
IWorldObject, IStaticWorldObject

public class MyInventoryStaticImpl
extends MyInventoryStatic

Implementation of the static part of the GameBots2004 message MYINV.

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


Nested Class Summary
static class MyInventoryStaticImpl.MyInventoryStaticUpdate
           
 
Field Summary
protected  ItemDescriptor Descriptor
          Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.
protected  UnrealId Id
          Unique Id of the item.
protected  ItemType Type
          Class of the item (e.g.
 
Fields inherited from class cz.cuni.amis.pogamut.ut2004.communication.messages.gbinfomessages.MyInventoryStatic
SimTime
 
Constructor Summary
MyInventoryStaticImpl()
          Parameter-less contructor for the message.
MyInventoryStaticImpl(MyInventory original)
          Cloning constructor from the full message.
MyInventoryStaticImpl(MyInventoryStatic original)
          Cloning constructor from the message part.
MyInventoryStaticImpl(MyInventoryStaticImpl original)
          Cloning constructor from the full message.
MyInventoryStaticImpl(UnrealId Id, ItemType Type, ItemDescriptor Descriptor)
          Creates new instance of the message MyInventory.
 
Method Summary
 MyInventoryStaticImpl 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.
 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.MyInventoryStatic
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 the item in the inventory.


Type

protected ItemType Type
Class of the item (e.g. xWeapons.FlakCannonPickup).


Descriptor

protected ItemDescriptor Descriptor
Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.

Constructor Detail

MyInventoryStaticImpl

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


MyInventoryStaticImpl

public MyInventoryStaticImpl(UnrealId Id,
                             ItemType Type,
                             ItemDescriptor Descriptor)
Creates new instance of the message MyInventory. An object in the observed player's inventory. Corresponding GameBots message (static part) is MYINV.

Parameters:
Id - Unique Id of the item. This Id represents the item in the inventory.
Type - Class of the item (e.g. xWeapons.FlakCannonPickup).
Descriptor - Descriptor of the item - according the ItemType you may cast this to various XYZDescriptor.

MyInventoryStaticImpl

public MyInventoryStaticImpl(MyInventory original)
Cloning constructor from the full message.

Parameters:
original -

MyInventoryStaticImpl

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

Parameters:
original -

MyInventoryStaticImpl

public MyInventoryStaticImpl(MyInventoryStatic original)
Cloning constructor from the message part.

Parameters:
original -
Method Detail

setSimTime

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

Overrides:
setSimTime in class MyInventoryStatic

clone

public MyInventoryStaticImpl 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
Returns:

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

toString

public java.lang.String toString()
Overrides:
toString in class MyInventoryStatic

toHtmlString

public java.lang.String toHtmlString()
Overrides:
toHtmlString in class MyInventoryStatic