|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<ItemType.Category>
cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category
public static enum ItemType.Category
Enum Constant Summary | |
---|---|
ADRENALINE
Adrenaline |
|
AMMO
Ammunition for weapons of all sorts. |
|
ARMOR
Armor packs and other armor restorers. |
|
DEPLOYABLE
Deployable weapons like slowfields, minefields, etc. |
|
HEALTH
Health packs and other health restorers. |
|
NONE
No category |
|
OTHER
UDamage, Keys + user defined items |
|
PROJECTILE
Projectiles for weapons of all sorts |
|
SHIELD
Shield packs and other shield restorers. |
|
WEAPON
Weapons of all sorts. |
Field Summary | |
---|---|
String |
name
Human-readable name of the category. |
Method Summary | |
---|---|
Set<ItemType> |
getTypes()
Return all item types of a certain category. |
static ItemType.Category |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ItemType.Category[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ItemType.Category WEAPON
public static final ItemType.Category AMMO
public static final ItemType.Category PROJECTILE
public static final ItemType.Category HEALTH
public static final ItemType.Category ARMOR
public static final ItemType.Category SHIELD
public static final ItemType.Category ADRENALINE
public static final ItemType.Category DEPLOYABLE
public static final ItemType.Category OTHER
public static final ItemType.Category NONE
Field Detail |
---|
public final String name
Method Detail |
---|
public static ItemType.Category[] values()
for (ItemType.Category c : ItemType.Category.values()) System.out.println(c);
public static ItemType.Category valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic Set<ItemType> getTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |