|
||||||||||
| 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.udk.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 | |
|---|---|
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 |
|
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 HEALTH
public static final ItemType.Category ARMOR
public static final ItemType.Category OTHER
| Field Detail |
|---|
public 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 | |||||||||