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

Package class diagram package 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:
Serializable, Comparable<ItemType.Category>
Enclosing class:
ItemType

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

WEAPON

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


AMMO

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


PROJECTILE

public static final ItemType.Category PROJECTILE
Projectiles 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


DEPLOYABLE

public static final ItemType.Category DEPLOYABLE
Deployable weapons like slowfields, minefields, etc.


OTHER

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


NONE

public static final ItemType.Category NONE
No category

Field Detail

name

public final 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(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getTypes

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

Returns:


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.