rl.common.game
Enum Faction

java.lang.Object
  extended by java.lang.Enum<Faction>
      extended by rl.common.game.Faction
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Faction>

public enum Faction
extends java.lang.Enum<Faction>


Enum Constant Summary
BAUFRIN
           
COMMONWEALTH
           
KESSRITH
           
MIXEDCOMMONWEALTH
           
MIXEDTOG
           
NARAM
           
RENEGADELEGION
           
SSORA
           
TOG
           
VAUVUSAR
           
 
Field Summary
static java.lang.String[] FactionNames
           
 
Method Summary
static java.lang.String[] getAllies(Faction faction)
           
static java.lang.String[] getAllies(java.lang.String factionName)
           
static Faction getFaction(java.lang.String factionName)
           
static java.lang.String getFactionName(Faction f)
           
 java.lang.String getName()
           
static java.lang.String getName(Faction faction)
           
static Faction getParentFaction(Faction f)
           
 java.lang.String toString()
           
static Faction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Faction[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TOG

public static final Faction TOG

RENEGADELEGION

public static final Faction RENEGADELEGION

COMMONWEALTH

public static final Faction COMMONWEALTH

NARAM

public static final Faction NARAM

BAUFRIN

public static final Faction BAUFRIN

SSORA

public static final Faction SSORA

KESSRITH

public static final Faction KESSRITH

VAUVUSAR

public static final Faction VAUVUSAR

MIXEDTOG

public static final Faction MIXEDTOG

MIXEDCOMMONWEALTH

public static final Faction MIXEDCOMMONWEALTH
Field Detail

FactionNames

public static java.lang.String[] FactionNames
Method Detail

values

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

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

valueOf

public static Faction 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

getFaction

public static Faction getFaction(java.lang.String factionName)

getAllies

public static java.lang.String[] getAllies(Faction faction)

getParentFaction

public static Faction getParentFaction(Faction f)

getAllies

public static java.lang.String[] getAllies(java.lang.String factionName)

getName

public static java.lang.String getName(Faction faction)

getName

public java.lang.String getName()

getFactionName

public static java.lang.String getFactionName(Faction f)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Enum<Faction>