cz.cuni.pogamut.MessageObjects
Class ItemCathegory

java.lang.Object
  extended by cz.cuni.pogamut.MessageObjects.ItemCathegory

public class ItemCathegory
extends java.lang.Object

ItemCathegory object contains additional information about item it is initialized according to information stored in ItemCathegories

it has couple different consturctors depending on the number of parameters - atributes of the current types of objects

so every object has message type

and item type parameters for the types of objects:


Field Summary
 int[] data
          It's a kind of magic... magic ...
 ItemType itemType
           
 MessageType msgType
           
 
Constructor Summary
ItemCathegory(MessageType msgType, ItemType itemType)
           
ItemCathegory(MessageType msgType, ItemType itemType, int i1)
           
ItemCathegory(MessageType msgType, ItemType itemType, int[] ints)
           
ItemCathegory(MessageType msgType, ItemType itemType, int i1, int i2)
           
ItemCathegory(MessageType msgType, ItemType itemType, int i1, int i2, int i3)
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

msgType

public MessageType msgType

itemType

public ItemType itemType

data

public int[] data
It's a kind of magic... magic ... MAGIC! Used for various informations about the type of item: for instance: max ammo, damage, etc. If you're really interested what the hell is stored here :-) see AgentBody.processItem() We've done this because we assume that user doesn't need to dig into this part of code and because we don't want to have too many classes - like a hundred more - one for every object which could be found in UT

Constructor Detail

ItemCathegory

public ItemCathegory(MessageType msgType,
                     ItemType itemType,
                     int[] ints)

ItemCathegory

public ItemCathegory(MessageType msgType,
                     ItemType itemType)

ItemCathegory

public ItemCathegory(MessageType msgType,
                     ItemType itemType,
                     int i1)

ItemCathegory

public ItemCathegory(MessageType msgType,
                     ItemType itemType,
                     int i1,
                     int i2)

ItemCathegory

public ItemCathegory(MessageType msgType,
                     ItemType itemType,
                     int i1,
                     int i2,
                     int i3)