|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType
public class ItemType
Type of the item.
Note: Items of the same type might have different names in UT engine.
Always use equals(Object)
to safely compare two ItemTypes.
Use getCategory()
to obtain basic categorization of items.
Use getGroup()
to obtain detailed group info of items.
Nested Class Summary | |
---|---|
static class |
ItemType.Category
List of all item categories. |
static class |
ItemType.Group
List of all item groups. |
Field Summary | |
---|---|
static ItemType |
ADRENALINE_PACK
Adrenaline capsule. |
static ItemType |
ASSAULT_RIFLE
AssaultRifle weapon. |
static ItemType |
ASSAULT_RIFLE_AMMO
AssaultRifle ammo. |
static ItemType |
ASSAULT_RIFLE_GRENADE
AssaultRifle secondary ammo. |
static ItemType |
BIO_RIFLE
BioRifle weapon. |
static ItemType |
BIO_RIFLE_AMMO
BioRifle ammo. |
static HashMapSet<ItemType.Category,ItemType> |
CATEGORIES
Contains item types that belongs to their categories. |
static ItemType |
FLAK_CANNON
FlakCannon weapon. |
static ItemType |
FLAK_CANNON_AMMO
FlakCannon ammo. |
static HashMapSet<ItemType.Group,ItemType> |
GROUPS
Contains item types that belongs to their groups. |
static ItemType |
HEALTH_PACK
Health kit. |
static ItemType |
ION_PAINTER
IonPainter weapon. |
static ItemType |
KEY
Key. |
static ItemType |
LIGHTNING_GUN
LightningGun weapon (modern sniper weapon). |
static ItemType |
LIGHTNING_GUN_AMMO
LightningGun ammo. |
static ItemType |
LINK_GUN
LinkGun weapon. |
static ItemType |
LINK_GUN_AMMO
LinkGun ammo. |
static ItemType |
MINI_HEALTH_PACK
Health vial. |
static ItemType |
MINIGUN
Minigun weapon. |
static ItemType |
MINIGUN_AMMO
Minigun ammo. |
static ItemType |
NONE
No ItemType |
static ItemType |
ONS_AVRIL
AVRiL Onslaught weapon. |
static ItemType |
ONS_AVRIL_AMMO
AVRiL ammo. |
static ItemType |
ONS_GRENADE_LAUNCHER
GrenadeLauncher Onslaught weapon. |
static ItemType |
ONS_GRENADE_LAUNCHER_AMMO
GrenadeLauncher ammo. |
static ItemType |
ONS_MINE_LAYER
MineLayer Onslaught weapon. |
static ItemType |
ONS_MINE_LAYER_AMMO
MineLayer ammo. |
static ItemType |
ONS_TARGET_PAINTER
TargetPainter Onslaught weapon. |
static ItemType |
REDEEMER
Redeemer weapon. |
static ItemType |
ROCKET_LAUNCHER
RocketLauncher weapon. |
static ItemType |
ROCKET_LAUNCHER_AMMO
RocketLauncher ammo. |
static ItemType |
SHIELD_GUN
ShieldGun weapon. |
static ItemType |
SHIELD_GUN_AMMO
ShieldGun ammo - sent when the bot is spawned. |
static ItemType |
SHIELD_PACK
SmallShield. |
static ItemType |
SHOCK_RIFLE
ShockRifle weapon. |
static ItemType |
SHOCK_RIFLE_AMMO
ShockRifle ammo. |
static ItemType |
SNIPER_RIFLE
SniperRifle weapon (classic sniper weapon). |
static ItemType |
SNIPER_RIFLE_AMMO
SniperRifle ammo. |
static ItemType |
SUPER_HEALTH_PACK
SuperHealth charger. |
static ItemType |
SUPER_SHIELD_PACK
SuperShield. |
static ItemType |
SUPER_SHOCK_RIFLE
SuperShockRifle weapon (instagib weapon). |
static ItemType |
TRANSLOCATOR
Translocator. |
static ItemType |
U_DAMAGE_PACK
UDamage bonus (damage multiplier). |
Constructor Summary | |
---|---|
ItemType(java.lang.String name)
Public constructor - creates ItemType of the EXTRA category and Group OTHER. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Indicates whether some other ItemType is "equal to" this one. |
ItemType.Category |
getCategory()
Retreives category of the item type. |
ItemType.Group |
getGroup()
Retreives group of the item type. |
static ItemType |
getItemType(java.lang.String utName)
Retrieves an ItemType for the specified item type name. |
java.lang.String |
getName()
|
static ItemType |
getWeapon(UnrealId id)
Attempts to recognize the weapon you are currently holding... |
int |
hashCode()
Returns a hash code value for the object. |
static ItemType |
MakePrototype(ItemType.Category category,
ItemType.Group group,
java.lang.String[] utNames)
Proto-constructor. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final HashMapSet<ItemType.Category,ItemType> CATEGORIES
public static final HashMapSet<ItemType.Group,ItemType> GROUPS
public static final ItemType TRANSLOCATOR
public static final ItemType SHIELD_GUN
public static final ItemType SHIELD_GUN_AMMO
public static final ItemType ASSAULT_RIFLE
public static final ItemType ASSAULT_RIFLE_AMMO
public static final ItemType ASSAULT_RIFLE_GRENADE
public static final ItemType BIO_RIFLE
public static final ItemType BIO_RIFLE_AMMO
public static final ItemType SHOCK_RIFLE
public static final ItemType SHOCK_RIFLE_AMMO
public static final ItemType LINK_GUN
public static final ItemType LINK_GUN_AMMO
public static final ItemType MINIGUN
public static final ItemType MINIGUN_AMMO
public static final ItemType FLAK_CANNON
public static final ItemType FLAK_CANNON_AMMO
public static final ItemType ROCKET_LAUNCHER
public static final ItemType ROCKET_LAUNCHER_AMMO
public static final ItemType LIGHTNING_GUN
public static final ItemType LIGHTNING_GUN_AMMO
public static final ItemType SNIPER_RIFLE
public static final ItemType SNIPER_RIFLE_AMMO
public static final ItemType REDEEMER
public static final ItemType SUPER_SHOCK_RIFLE
public static final ItemType ION_PAINTER
public static final ItemType ONS_MINE_LAYER
public static final ItemType ONS_MINE_LAYER_AMMO
public static final ItemType ONS_GRENADE_LAUNCHER
public static final ItemType ONS_GRENADE_LAUNCHER_AMMO
public static final ItemType ONS_AVRIL
public static final ItemType ONS_AVRIL_AMMO
public static final ItemType ONS_TARGET_PAINTER
public static final ItemType HEALTH_PACK
public static final ItemType MINI_HEALTH_PACK
public static final ItemType SUPER_HEALTH_PACK
public static final ItemType SHIELD_PACK
public static final ItemType SUPER_SHIELD_PACK
public static final ItemType U_DAMAGE_PACK
public static final ItemType ADRENALINE_PACK
public static final ItemType KEY
public static final ItemType NONE
Constructor Detail |
---|
public ItemType(java.lang.String name)
name
- Type name from GB engine.Method Detail |
---|
public static ItemType getWeapon(UnrealId id)
See Self.getWeapon()
.
May return null == weapon was not recognized. ALWAYS CHECK!
public java.lang.String toString()
toString
in class java.lang.Object
public ItemType.Category getCategory()
public ItemType.Group getGroup()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object to be compared with.
public int hashCode()
hashCode
in class java.lang.Object
public static ItemType MakePrototype(ItemType.Category category, ItemType.Group group, java.lang.String[] utNames)
category
- Category of the item.group
- Group of the item.utNames
- Names of the item in UT engine.
public static ItemType getItemType(java.lang.String utName)
utName
- e.g. Item.getType()
public java.lang.String getName()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |