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

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

public static enum ItemType.Group
extends java.lang.Enum<ItemType.Group>

List of all item groups. Groups fine down the categories into specific groups, based on what the item belongs to. Also, groups join items from different categories together, if they belong together (e.g. weapon with its ammo).


Enum Constant Summary
ADRENALINE
          Adrenaline packs and adrenaline restorers.
ASSAULT_RIFLE
          AssaultRifle weapon and accessory.
BIO_RIFLE
          BioRifle weapon and accessory.
FLAK_CANNON
          FlakCannon weapon and accessory.
HEALTH
          Classic health pack.
ION_PAINTER
          IonPainter weapon and accessory.
KEY
          Keys.
LIGHTNING_GUN
          LightningGun weapon and accessory.
LINK_GUN
          LinkGun weapon and accessory.
MINI_HEALTH
          Mini health vial.
MINIGUN
          Minigun weapon and accessory.
NONE
          No group, used for the prototype None
ONS_AVRIL
          OnsAvril weapon and accessory.
ONS_GRENADE_LAUNCHER
          OnsGrenadeLauncher weapon and accessory.
ONS_MINE_LAYER
          OnsMineLayer weapon and accessory.
ONS_TARGET_PAINTER
          TargetPainter weapon and accessory.
OTHER
          Other items with user-defined group.
REDEEMER
          Redeemer weapon and accessory.
ROCKET_LAUNCHER
          RocketLauncher weapon and accessory.
SHIELD_GUN
          ShieldGun weapon and accessory.
SHOCK_RIFLE
          ShockRifle weapon and accessory.
SMALL_ARMOR
          Shield pack.
SNIPER_RIFLE
          SniperRifle weapon and accessory.
SUPER_ARMOR
          Shield pack.
SUPER_HEALTH
          Big health recharger.
SUPER_SHOCK_RIFLE
          SuperShockRifle weapon and accessory.
TRANSLOCATOR
          Translocating weapon and accessory.
UDAMAGE
          UDamage bonus items.
 
Field Summary
 java.lang.String name
          Human-readable name of the group.
 
Method Summary
 java.util.Set<ItemType> getTypes()
           
static ItemType.Group valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static ItemType.Group[] 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

TRANSLOCATOR

public static final ItemType.Group TRANSLOCATOR
Translocating weapon and accessory.


SHIELD_GUN

public static final ItemType.Group SHIELD_GUN
ShieldGun weapon and accessory.


ASSAULT_RIFLE

public static final ItemType.Group ASSAULT_RIFLE
AssaultRifle weapon and accessory.


BIO_RIFLE

public static final ItemType.Group BIO_RIFLE
BioRifle weapon and accessory.


SHOCK_RIFLE

public static final ItemType.Group SHOCK_RIFLE
ShockRifle weapon and accessory.


LINK_GUN

public static final ItemType.Group LINK_GUN
LinkGun weapon and accessory.


MINIGUN

public static final ItemType.Group MINIGUN
Minigun weapon and accessory.


FLAK_CANNON

public static final ItemType.Group FLAK_CANNON
FlakCannon weapon and accessory.


ROCKET_LAUNCHER

public static final ItemType.Group ROCKET_LAUNCHER
RocketLauncher weapon and accessory.


LIGHTNING_GUN

public static final ItemType.Group LIGHTNING_GUN
LightningGun weapon and accessory.


SNIPER_RIFLE

public static final ItemType.Group SNIPER_RIFLE
SniperRifle weapon and accessory.


ION_PAINTER

public static final ItemType.Group ION_PAINTER
IonPainter weapon and accessory.


REDEEMER

public static final ItemType.Group REDEEMER
Redeemer weapon and accessory.


SUPER_SHOCK_RIFLE

public static final ItemType.Group SUPER_SHOCK_RIFLE
SuperShockRifle weapon and accessory.


ONS_MINE_LAYER

public static final ItemType.Group ONS_MINE_LAYER
OnsMineLayer weapon and accessory.


ONS_GRENADE_LAUNCHER

public static final ItemType.Group ONS_GRENADE_LAUNCHER
OnsGrenadeLauncher weapon and accessory.


ONS_AVRIL

public static final ItemType.Group ONS_AVRIL
OnsAvril weapon and accessory.


ONS_TARGET_PAINTER

public static final ItemType.Group ONS_TARGET_PAINTER
TargetPainter weapon and accessory.


HEALTH

public static final ItemType.Group HEALTH
Classic health pack.


MINI_HEALTH

public static final ItemType.Group MINI_HEALTH
Mini health vial.


SUPER_HEALTH

public static final ItemType.Group SUPER_HEALTH
Big health recharger.


SMALL_ARMOR

public static final ItemType.Group SMALL_ARMOR
Shield pack.


SUPER_ARMOR

public static final ItemType.Group SUPER_ARMOR
Shield pack.


ADRENALINE

public static final ItemType.Group ADRENALINE
Adrenaline packs and adrenaline restorers.


UDAMAGE

public static final ItemType.Group UDAMAGE
UDamage bonus items.


KEY

public static final ItemType.Group KEY
Keys.


OTHER

public static final ItemType.Group OTHER
Other items with user-defined group.


NONE

public static final ItemType.Group NONE
No group, used for the prototype None

Field Detail

name

public java.lang.String name
Human-readable name of the group.

Method Detail

values

public static ItemType.Group[] 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.Group c : ItemType.Group.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.Group 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()