cz.cuni.amis.pogamut.ut2004.communication.messages
Enum ItemType.Category

java.lang.Object
  extended by java.lang.Enum<ItemType.Category>
      extended by cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Category
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<ItemType.Category>
Enclosing class:
ItemType

public static enum ItemType.Category
extends java.lang.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

WEAPON

public static final ItemType.Category WEAPON
Weapons of all sorts.


AMMO

public static final ItemType.Category AMMO
Ammunition for weapons of all sorts.


HEALTH

public static final ItemType.Category HEALTH
Health packs and other health restorers.


ARMOR

public static final ItemType.Category ARMOR
Armor packs and other armor restorers.


SHIELD

public static final ItemType.Category SHIELD
Shield packs and other shield restorers.


ADRENALINE

public static final ItemType.Category ADRENALINE
Adrenaline


OTHER

public static final ItemType.Category OTHER
UDamage, Keys + user defined items

Field Detail

name

public final java.lang.String name
Human-readable name of the category.

Method Detail

values

public static ItemType.Category[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ItemType.Category c : ItemType.Category.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ItemType.Category valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getTypes

public java.util.Set<ItemType> getTypes()
Return all item types of a certain category.

Returns: