|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public static interface Faction.FactionRange
The foundation of any Faction, the Faction Range represents a range of values that constitutes a single named group of numeric values for the faction. A factions total range is determined by the high value of the highest range and the low value of the lowest range.
Faction.addRange(String),
Faction.ranges()| Method Summary | |
|---|---|
int |
alignEquiv()
Returns a constant reflecting whether this range of faction value is equivalent to one of the legacy alignment constant values. |
java.lang.String |
codeName()
Returns the unique code name that describes this range of faction values |
int |
high()
Returns the numerically high value of this faction range |
int |
low()
Returns the numerically low value of this faction range |
java.lang.String |
name()
Returns the nice friendly displayable name of this faction range, which need not be unique. |
int |
random()
Returns a random numeric value within this faction range |
void |
setAlignEquiv(int newVal)
Sets a constant reflecting whether this range of faction value is equivalent to one of the legacy alignment constant values. |
void |
setHigh(int newVal)
Sets the numerically high value of this faction range |
void |
setLow(int newVal)
Sets the numerically low value of this faction range |
void |
setName(java.lang.String newVal)
Sets the nice friendly displayable name of this faction range, which need not be unique. |
java.lang.String |
toString()
Returns a semicolon-delimited representation of this faction range, which can be used to create a new one later. |
| Method Detail |
|---|
java.lang.String codeName()
int low()
setLow(int)void setLow(int newVal)
newVal - the numerically low value of this faction rangelow()int high()
setHigh(int)void setHigh(int newVal)
newVal - the numerically high value of this faction rangehigh()java.lang.String name()
setName(String)void setName(java.lang.String newVal)
newVal - the name of this range of valuesname()int alignEquiv()
Faction.ALIGN_NAMES,
Faction.ALIGN_INDIFF,
Faction.ALIGN_EVIL,
Faction.ALIGN_GOOD,
Faction.ALIGN_NEUTRAL,
setAlignEquiv(int)void setAlignEquiv(int newVal)
newVal - a new alignment constantFaction.ALIGN_NAMES,
Faction.ALIGN_INDIFF,
Faction.ALIGN_EVIL,
Faction.ALIGN_GOOD,
Faction.ALIGN_NEUTRAL,
setAlignEquiv(int)java.lang.String toString()
toString in class java.lang.ObjectFaction.addRange(String)int random()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||