|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ItemType.Category> cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category
public static enum ItemType.Category
List of all item categories. Categories divide items into several basic categories, based on what the item does and what is it intended to do.
Enum Constant Summary | |
---|---|
ADRENALINE
Adrenaline |
|
AMMO
Ammunition for weapons of all sorts. |
|
ARMOR
Armor packs and other armor restorers. |
|
HEALTH
Health packs and other health restorers. |
|
OTHER
UDamage, Keys + user defined items |
|
SHIELD
Shield packs and other shield restorers. |
|
WEAPON
Weapons of all sorts. |
Field Summary | |
---|---|
java.lang.String |
name
Human-readable name of the category. |
Method Summary | |
---|---|
java.util.Set<ItemType> |
getTypes()
Return all item types of a certain category. |
static ItemType.Category |
valueOf(java.lang.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 HEALTH
public static final ItemType.Category ARMOR
public static final ItemType.Category SHIELD
public static final ItemType.Category ADRENALINE
public static final ItemType.Category OTHER
Field Detail |
---|
public final java.lang.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(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic java.util.Set<ItemType> getTypes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |