Faction.FRange, java.lang.Comparable<Faction.FRange>public class DefaultFaction.DefaultFactionRange extends java.lang.Object implements Faction.FRange, java.lang.Comparable<Faction.FRange>
| Modifier and Type | Field | Description |
|---|---|---|
Faction.Align |
alignEquiv |
|
java.lang.String |
codeName |
|
Faction |
faction |
|
int |
high |
|
int |
low |
|
java.lang.String |
name |
| Constructor | Description |
|---|---|
DefaultFactionRange(Faction F,
java.lang.String key) |
| 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
|
int |
compareTo(Faction.FRange o) |
|
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.
|
public int low
public int high
public java.lang.String name
public java.lang.String codeName
public Faction.Align alignEquiv
public Faction faction
public DefaultFactionRange(Faction F, java.lang.String key)
public int low()
Faction.FRangelow in interface Faction.FRangeFaction.FRange.setLow(int)public int high()
Faction.FRangehigh in interface Faction.FRangeFaction.FRange.setHigh(int)public java.lang.String name()
Faction.FRangename in interface Faction.FRangeFaction.FRange.setName(String)public java.lang.String codeName()
Faction.FRangecodeName in interface Faction.FRangepublic Faction.Align alignEquiv()
Faction.FRangealignEquiv in interface Faction.FRangeFaction.Alignpublic Faction getFaction()
Faction.FRangegetFaction in interface Faction.FRangeFaction.addRange(String)public void setLow(int newVal)
Faction.FRangesetLow in interface Faction.FRangenewVal - the numerically low value of this faction rangeFaction.FRange.low()public void setHigh(int newVal)
Faction.FRangesetHigh in interface Faction.FRangenewVal - the numerically high value of this faction rangeFaction.FRange.high()public void setName(java.lang.String newVal)
Faction.FRangesetName in interface Faction.FRangenewVal - the name of this range of valuesFaction.FRange.name()public void setAlignEquiv(Faction.Align newVal)
Faction.FRangesetAlignEquiv in interface Faction.FRangenewVal - a new alignment constantFaction.Alignpublic java.lang.String toString()
Faction.FRangetoString in interface Faction.FRangetoString in class java.lang.ObjectFaction.addRange(String)public int random()
Faction.FRangerandom in interface Faction.FRangepublic int med()
Faction.FRangemed in interface Faction.FRangepublic int compareTo(Faction.FRange o)
compareTo in interface java.lang.Comparable<Faction.FRange>