multiverse.mars.core
Enum MarsAbility.AbilityResult

java.lang.Object
  extended by java.lang.Enum<MarsAbility.AbilityResult>
      extended by multiverse.mars.core.MarsAbility.AbilityResult
All Implemented Interfaces:
Serializable, Comparable<MarsAbility.AbilityResult>
Enclosing class:
MarsAbility

public static enum MarsAbility.AbilityResult
extends Enum<MarsAbility.AbilityResult>


Enum Constant Summary
BAD_ASPECT
           
BUSY
           
INSUFFICIENT_ENERGY
           
INVALID_TARGET
           
MISSING_REAGENT
           
MISSING_TOOL
           
NOT_READY
           
OUT_OF_LOS
           
OUT_OF_RANGE
           
SUCCESS
           
TOO_CLOSE
           
 
Method Summary
static MarsAbility.AbilityResult valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MarsAbility.AbilityResult[] 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

SUCCESS

public static final MarsAbility.AbilityResult SUCCESS

OUT_OF_RANGE

public static final MarsAbility.AbilityResult OUT_OF_RANGE

INVALID_TARGET

public static final MarsAbility.AbilityResult INVALID_TARGET

NOT_READY

public static final MarsAbility.AbilityResult NOT_READY

TOO_CLOSE

public static final MarsAbility.AbilityResult TOO_CLOSE

OUT_OF_LOS

public static final MarsAbility.AbilityResult OUT_OF_LOS

INSUFFICIENT_ENERGY

public static final MarsAbility.AbilityResult INSUFFICIENT_ENERGY

BAD_ASPECT

public static final MarsAbility.AbilityResult BAD_ASPECT

MISSING_REAGENT

public static final MarsAbility.AbilityResult MISSING_REAGENT

MISSING_TOOL

public static final MarsAbility.AbilityResult MISSING_TOOL

BUSY

public static final MarsAbility.AbilityResult BUSY
Method Detail

values

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

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

valueOf

public static MarsAbility.AbilityResult 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