cz.cuni.pogamut.MessageObjects
Class ItemCathegory
java.lang.Object
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
- identifies type of message (WEAPON, AMMO etc.)
- something like cathegory
and item type
- type of item - e.g. type of weapon, ammo etc.
- used to match weapons and ammos together etc.
parameters for the types of objects:
- for weapons - in order of appearance;):
- melee
- current ammo - ammo delivered with weapon when agent picks it up - counts with default settings
douesn't work exactly with dropped weapons
- max ammo - max. ammo that agent can carry with the weapon
- effective distance for shooting - distance on which the weapon is deadly
- maximum distance - distance on which it is becoming nearly useless to shoot
both distances are defined in UT units, for example bot is high roughly about 150 UT units
- for ammo:
- for health:
- health strength
- boostable - identifies, whether by using this health, agent can exceed health which he gots at the spawn (100)
- for armor:
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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)