|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Common.DefaultFaction.DefaultFactionRange
public static class DefaultFaction.DefaultFactionRange
| Field Summary | |
|---|---|
int |
AlignEquiv
|
java.lang.String |
CodeName
|
int |
high
|
int |
low
|
Faction |
myFaction
|
java.lang.String |
Name
|
| Constructor Summary | |
|---|---|
DefaultFaction.DefaultFactionRange(Faction F,
java.lang.String key)
|
|
| 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 |
Faction |
myFaction()
|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int low
public int high
public java.lang.String Name
public java.lang.String CodeName
public int AlignEquiv
public Faction myFaction
| Constructor Detail |
|---|
public DefaultFaction.DefaultFactionRange(Faction F,
java.lang.String key)
| Method Detail |
|---|
public int low()
Faction.FactionRange
low in interface Faction.FactionRangeFaction.FactionRange.setLow(int)public int high()
Faction.FactionRange
high in interface Faction.FactionRangeFaction.FactionRange.setHigh(int)public java.lang.String name()
Faction.FactionRange
name in interface Faction.FactionRangeFaction.FactionRange.setName(String)public java.lang.String codeName()
Faction.FactionRange
codeName in interface Faction.FactionRangepublic int alignEquiv()
Faction.FactionRange
alignEquiv in interface Faction.FactionRangeFaction.ALIGN_NAMES,
Faction.ALIGN_INDIFF,
Faction.ALIGN_EVIL,
Faction.ALIGN_GOOD,
Faction.ALIGN_NEUTRAL,
Faction.FactionRange.setAlignEquiv(int)public Faction myFaction()
public void setLow(int newVal)
Faction.FactionRange
setLow in interface Faction.FactionRangenewVal - the numerically low value of this faction rangeFaction.FactionRange.low()public void setHigh(int newVal)
Faction.FactionRange
setHigh in interface Faction.FactionRangenewVal - the numerically high value of this faction rangeFaction.FactionRange.high()public void setName(java.lang.String newVal)
Faction.FactionRange
setName in interface Faction.FactionRangenewVal - the name of this range of valuesFaction.FactionRange.name()public void setAlignEquiv(int newVal)
Faction.FactionRange
setAlignEquiv in interface Faction.FactionRangenewVal - a new alignment constantFaction.ALIGN_NAMES,
Faction.ALIGN_INDIFF,
Faction.ALIGN_EVIL,
Faction.ALIGN_GOOD,
Faction.ALIGN_NEUTRAL,
Faction.FactionRange.setAlignEquiv(int)public java.lang.String toString()
Faction.FactionRange
toString in interface Faction.FactionRangetoString in class java.lang.ObjectFaction.addRange(String)public int random()
Faction.FactionRange
random in interface Faction.FactionRange
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||