|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface Faction.FRange
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 | |
---|---|
Faction.Align |
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 |
Faction |
getFaction()
Returns the faction of which this is a range |
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(Faction.Align 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()
Faction.Align alignEquiv()
Faction.Align
void setAlignEquiv(Faction.Align newVal)
newVal
- a new alignment constantFaction.Align
java.lang.String toString()
toString
in class java.lang.Object
Faction.addRange(String)
int random()
Faction getFaction()
Faction.addRange(String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |