DefaultFaction.DefaultFactionRange
public static interface Faction.FRange
Faction.addRange(String)
,
Faction.ranges()
Modifier and Type | Method | Description |
---|---|---|
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
|
int |
med() |
Returns the numerically median 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.
|
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)
int med()
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)