rl.common.game
Enum Faction
java.lang.Object
java.lang.Enum<Faction>
rl.common.game.Faction
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Faction>
public enum Faction
- extends java.lang.Enum<Faction>
| 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 |
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
FactionNames
public static java.lang.String[] FactionNames
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>