|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.udk.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 |
AVRIL
Avril weapon |
static ItemType |
AVRIL_AMMO
Avril ammo |
static ItemType |
BASE_ARMOR
Base armor. |
static ItemType |
BIORIFLE
Biorifle weapon |
static ItemType |
BIORIFLE_AMMO
Biorifle ammo |
static cz.cuni.amis.utils.maps.HashMapSet<ItemType.Category,ItemType> |
CATEGORIES
Contains item types that belongs to their categories. |
static ItemType |
ENFORCER
Enforcer weapon |
static ItemType |
ENFORCER_AMMO
Enforcer ammo |
static ItemType |
FLAK_CANNON
FlakCannon weapon |
static ItemType |
FLAK_CANNON_AMMO
FlakCannon ammo |
static cz.cuni.amis.utils.maps.HashMapSet<ItemType.Group,ItemType> |
GROUPS
Contains item types that belongs to their groups. |
static ItemType |
HEALTH_PACK
Health pack. |
static ItemType |
HEALTH_VIAL
Health vial. |
static ItemType |
IMPACT_HAMMER
ImpactHammer weapon |
static ItemType |
INSTAGIBRIFLE
InstagibRifle weapon |
static ItemType |
INSTAGIBRIFLE_AMMO
InstagibRifle ammo |
static ItemType |
JUMP_BOOTS
UDamage bonus (damage multiplier). |
static ItemType |
LINK_GUN
LinkGun weapon. |
static ItemType |
LINK_GUN_AMMO
LinkGun ammo. |
static ItemType |
NONE
No ItemType |
static ItemType |
REDEEMER
Redeemer weapon |
static ItemType |
REDEEMER_AMMO
Redeemer ammo |
static ItemType |
ROCKET_LAUNCHER
RocketLauncher weapon. |
static ItemType |
ROCKET_LAUNCHER_AMMO
RocketLauncher ammo. |
static ItemType |
SHIELD_BELT
Shield belt. |
static ItemType |
SHOCK_RIFLE
ShockRifle weapon. |
static ItemType |
SHOCK_RIFLE_AMMO
ShockRifle ammo. |
static ItemType |
SNIPERRIFLE
SniperRifle weapon |
static ItemType |
SNIPERRIFLE_AMMO
SniperRifle ammo |
static ItemType |
STINGER
Stinger weapon |
static ItemType |
STINGER_AMMO
Stinger ammo |
static ItemType |
THIGH_PAD
Thigh pad. |
static ItemType |
TRANSLOCATOR
Translocator weapon |
static ItemType |
UDAMAGE
UDamage bonus (damage multiplier). |
static ItemType |
WEAPON_LOCKER
Weapons locker |
Constructor Summary | |
---|---|
ItemType(String name)
Public constructor - creates ItemType of the EXTRA category and Group OTHER. |
Method Summary | |
---|---|
boolean |
equals(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(String utName)
Retrieves an ItemType for the specified item type name. |
String |
getName()
|
int |
hashCode()
Returns a hash code value for the object. |
static ItemType |
MakePrototype(ItemType.Category category,
ItemType.Group group,
String[] utNames)
Proto-constructor. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final cz.cuni.amis.utils.maps.HashMapSet<ItemType.Category,ItemType> CATEGORIES
public static final cz.cuni.amis.utils.maps.HashMapSet<ItemType.Group,ItemType> GROUPS
public static final ItemType AVRIL
public static final ItemType AVRIL_AMMO
public static final ItemType BIORIFLE
public static final ItemType BIORIFLE_AMMO
public static final ItemType ENFORCER
public static final ItemType ENFORCER_AMMO
public static final ItemType FLAK_CANNON
public static final ItemType FLAK_CANNON_AMMO
public static final ItemType IMPACT_HAMMER
public static final ItemType INSTAGIBRIFLE
public static final ItemType INSTAGIBRIFLE_AMMO
public static final ItemType REDEEMER
public static final ItemType REDEEMER_AMMO
public static final ItemType SNIPERRIFLE
public static final ItemType SNIPERRIFLE_AMMO
public static final ItemType STINGER
public static final ItemType STINGER_AMMO
public static final ItemType TRANSLOCATOR
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 ROCKET_LAUNCHER
public static final ItemType ROCKET_LAUNCHER_AMMO
public static final ItemType HEALTH_PACK
public static final ItemType HEALTH_VIAL
public static final ItemType THIGH_PAD
public static final ItemType BASE_ARMOR
public static final ItemType SHIELD_BELT
public static final ItemType UDAMAGE
public static final ItemType JUMP_BOOTS
public static final ItemType WEAPON_LOCKER
public static final ItemType NONE
Constructor Detail |
---|
public ItemType(String name)
name
- Type name from GB engine.Method Detail |
---|
public String toString()
toString
in class Object
public ItemType.Category getCategory()
public ItemType.Group getGroup()
public boolean equals(Object obj)
equals
in class Object
obj
- Object to be compared with.
public int hashCode()
hashCode
in class Object
public static ItemType MakePrototype(ItemType.Category category, ItemType.Group group, String[] utNames)
category
- Category of the item.group
- Group of the item.utNames
- Names of the item in UT engine.
public static ItemType getItemType(String utName)
utName
- e.g. Item.getType()
public String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |