com.planet_ink.coffee_mud.Libraries.interfaces
Enum CombatLibrary.CombatSystem

java.lang.Object
  extended by java.lang.Enum<CombatLibrary.CombatSystem>
      extended by com.planet_ink.coffee_mud.Libraries.interfaces.CombatLibrary.CombatSystem
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CombatLibrary.CombatSystem>
Enclosing interface:
CombatLibrary

public static enum CombatLibrary.CombatSystem
extends java.lang.Enum<CombatLibrary.CombatSystem>

An enumeration of the several combat systems. These are specified in the coffeemud.ini file.


Enum Constant Summary
DEFAULT
          The default system allows one action point to be used by each combatant on a skill, per round.
MANUAL
          The manual system allows all action points to be used by each combatant on skills or on basic attacks, but all attack must be manually entered.
QUEUE
          The queue system allows all action points to be used by each combatant on skills.
TURNBASED
          The turn based system gives each combatant an amount of time to use all their action points on skills or basic attacks, not permitting any other combatant to act until the previous one completes.
 
Method Summary
static CombatLibrary.CombatSystem valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CombatLibrary.CombatSystem[] 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

DEFAULT

public static final CombatLibrary.CombatSystem DEFAULT
The default system allows one action point to be used by each combatant on a skill, per round. All other action points are automatically used on basic attacks, every round.


QUEUE

public static final CombatLibrary.CombatSystem QUEUE
The queue system allows all action points to be used by each combatant on skills. All unused action points are spent on basic attacks every round.


MANUAL

public static final CombatLibrary.CombatSystem MANUAL
The manual system allows all action points to be used by each combatant on skills or on basic attacks, but all attack must be manually entered. Any unused points are lost every round.


TURNBASED

public static final CombatLibrary.CombatSystem TURNBASED
The turn based system gives each combatant an amount of time to use all their action points on skills or basic attacks, not permitting any other combatant to act until the previous one completes.

Method Detail

values

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

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

valueOf

public static CombatLibrary.CombatSystem 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