rl.common.game.elements
Enum Weapon.WeaponType

java.lang.Object
  extended by java.lang.Enum<Weapon.WeaponType>
      extended by rl.common.game.elements.Weapon.WeaponType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Weapon.WeaponType>
Enclosing class:
Weapon

public static enum Weapon.WeaponType
extends java.lang.Enum<Weapon.WeaponType>


Enum Constant Summary
AntiPersonnel
           
Artillery
           
GaussCannon
           
InfantryMortar
           
InfantryWeaponFire
           
Laser
           
MassDriverCannon
           
Missile
           
PointDefence
           
ThorJavelin
           
VehicleMissile
           
 
Method Summary
static Weapon.WeaponType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Weapon.WeaponType[] 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

Laser

public static final Weapon.WeaponType Laser

MassDriverCannon

public static final Weapon.WeaponType MassDriverCannon

GaussCannon

public static final Weapon.WeaponType GaussCannon

VehicleMissile

public static final Weapon.WeaponType VehicleMissile

Missile

public static final Weapon.WeaponType Missile

Artillery

public static final Weapon.WeaponType Artillery

AntiPersonnel

public static final Weapon.WeaponType AntiPersonnel

PointDefence

public static final Weapon.WeaponType PointDefence

InfantryWeaponFire

public static final Weapon.WeaponType InfantryWeaponFire

InfantryMortar

public static final Weapon.WeaponType InfantryMortar

ThorJavelin

public static final Weapon.WeaponType ThorJavelin
Method Detail

values

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

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

valueOf

public static Weapon.WeaponType 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