cz.cuni.amis.pogamut.ut2004.communication.messages
Enum UT2004ItemType.UT2004Group

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

public static enum UT2004ItemType.UT2004Group
extends Enum<UT2004ItemType.UT2004Group>
implements 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
 String name
          Human-readable name of the group.
 
Method Summary
 String getName()
           
 Set<ItemType> getTypes()
           
static UT2004ItemType.UT2004Group valueOf(String name)
          Returns the enum constant of this type with the specified name.
static UT2004ItemType.UT2004Group[] 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
 
Methods inherited from interface cz.cuni.amis.pogamut.ut2004.communication.messages.ItemType.Group
name
 

Enum Constant Detail

TRANSLOCATOR

public static final UT2004ItemType.UT2004Group TRANSLOCATOR
Translocating weapon and accessory.


SHIELD_GUN

public static final UT2004ItemType.UT2004Group SHIELD_GUN
ShieldGun weapon and accessory.


ASSAULT_RIFLE

public static final UT2004ItemType.UT2004Group ASSAULT_RIFLE
AssaultRifle weapon and accessory.


BIO_RIFLE

public static final UT2004ItemType.UT2004Group BIO_RIFLE
BioRifle weapon and accessory.


SHOCK_RIFLE

public static final UT2004ItemType.UT2004Group SHOCK_RIFLE
ShockRifle weapon and accessory.


LINK_GUN

public static final UT2004ItemType.UT2004Group LINK_GUN
LinkGun weapon and accessory.


MINIGUN

public static final UT2004ItemType.UT2004Group MINIGUN
Minigun weapon and accessory.


FLAK_CANNON

public static final UT2004ItemType.UT2004Group FLAK_CANNON
FlakCannon weapon and accessory.


ROCKET_LAUNCHER

public static final UT2004ItemType.UT2004Group ROCKET_LAUNCHER
RocketLauncher weapon and accessory.


LIGHTNING_GUN

public static final UT2004ItemType.UT2004Group LIGHTNING_GUN
LightningGun weapon and accessory.


SNIPER_RIFLE

public static final UT2004ItemType.UT2004Group SNIPER_RIFLE
SniperRifle weapon and accessory.


ION_PAINTER

public static final UT2004ItemType.UT2004Group ION_PAINTER
IonPainter weapon and accessory.


REDEEMER

public static final UT2004ItemType.UT2004Group REDEEMER
Redeemer weapon and accessory.


SUPER_SHOCK_RIFLE

public static final UT2004ItemType.UT2004Group SUPER_SHOCK_RIFLE
SuperShockRifle weapon and accessory.


ONS_MINE_LAYER

public static final UT2004ItemType.UT2004Group ONS_MINE_LAYER
OnsMineLayer weapon and accessory.


ONS_GRENADE_LAUNCHER

public static final UT2004ItemType.UT2004Group ONS_GRENADE_LAUNCHER
OnsGrenadeLauncher weapon and accessory.


ONS_AVRIL

public static final UT2004ItemType.UT2004Group ONS_AVRIL
OnsAvril weapon and accessory.


ONS_TARGET_PAINTER

public static final UT2004ItemType.UT2004Group ONS_TARGET_PAINTER
TargetPainter weapon and accessory.


HEALTH

public static final UT2004ItemType.UT2004Group HEALTH
Classic health pack.


MINI_HEALTH

public static final UT2004ItemType.UT2004Group MINI_HEALTH
Mini health vial.


SUPER_HEALTH

public static final UT2004ItemType.UT2004Group SUPER_HEALTH
Big health recharger.


SMALL_ARMOR

public static final UT2004ItemType.UT2004Group SMALL_ARMOR
Shield pack.


SUPER_ARMOR

public static final UT2004ItemType.UT2004Group SUPER_ARMOR
Shield pack.


ADRENALINE

public static final UT2004ItemType.UT2004Group ADRENALINE
Adrenaline packs and adrenaline restorers.


UDAMAGE

public static final UT2004ItemType.UT2004Group UDAMAGE
UDamage bonus items.


KEY

public static final UT2004ItemType.UT2004Group KEY
Keys.


OTHER

public static final UT2004ItemType.UT2004Group OTHER
Other items with user-defined group.


NONE

public static final UT2004ItemType.UT2004Group NONE
No group, used for the prototype None

Field Detail

name

public String name
Human-readable name of the group.

Method Detail

values

public static UT2004ItemType.UT2004Group[] 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 (UT2004ItemType.UT2004Group c : UT2004ItemType.UT2004Group.values())
    System.out.println(c);

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

valueOf

public static UT2004ItemType.UT2004Group 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()
Specified by:
getTypes in interface ItemType.Group

getName

public String getName()
Specified by:
getName in interface ItemType.Group
Returns:
human readable representation of name.


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