|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.planet_ink.coffee_mud.Common.interfaces.CharStats.CODES
public static class CharStats.CODES
Global character stat code data collector
Constructor Summary | |
---|---|
CharStats.CODES()
|
Method Summary | |
---|---|
java.lang.String |
abbr(int code)
Returns the abbreviation of the stat code |
static java.lang.String |
ABBR(int code)
Returns the abbreviation of the stat code |
static java.lang.String[] |
ABBRS()
Returns the abbreviations of the various stats |
void |
addAllStat(java.lang.String abbr,
java.lang.String desc,
java.lang.String name,
java.lang.String attDesc,
int cmmsgMap,
boolean base)
Adds a new miscellaneous stat to this object for all mobs and players to share |
void |
addBaseStat(java.lang.String abbr,
java.lang.String desc,
java.lang.String name,
java.lang.String attDesc,
int cmmsgMap)
Adds a new base stat to this object for all mobs and players to share |
void |
addMaxStat(int baseCode,
java.lang.String abbr,
java.lang.String desc,
java.lang.String name,
java.lang.String attDesc,
int cmmsgMap)
Adds a new max stat to this object for all mobs and players to share |
void |
addSavingThrow(java.lang.String abbr,
java.lang.String desc,
java.lang.String name,
java.lang.String attDesc,
int cmmsgMap)
Adds a new saving throw stat to this object for all mobs and players to share |
int[] |
all()
Returns an array of the numeric codes for all stats |
static int[] |
ALLCODES()
Returns an array of the numeric codes for all stats |
static java.lang.String |
ATTDESC(int code)
Returns the adjective description of the stat code |
static java.lang.String[] |
ATTDESCS()
Returns the adjective descriptions of the various stats |
int[] |
base()
Returns an array of the numeric codes for all base stats |
static int[] |
BASECODES()
Returns an array of the numeric codes for all base stats |
static java.lang.String[] |
BASENAMES()
Returns the name of all base stats |
static CharStats.CODES |
c(byte c)
|
static int[] |
CMMSGMAP()
Returns the CMMsg mappings of the various stats |
static int |
CMMSGMAP(int code)
Returns the CMMsg mapping of the stat |
java.lang.String |
desc(int code)
Returns the description of the stat code |
static java.lang.String |
DESC(int code)
Returns the description of the stat code |
static java.lang.String[] |
DESCS()
Returns the descriptions of the various stats |
int |
find(java.lang.String name,
boolean exactOnly)
Returns the code for the given stat name |
static int |
findWhole(java.lang.String name,
boolean exactOnly)
Returns the code for the given stat name |
static CharStats.CODES |
instance()
|
boolean |
isBase(int code)
Returns whether the given code is a base stat |
static boolean |
isBASE(int code)
Returns whether the given code is a base stat |
static int |
LONNGEST_BASECODE_NAME()
Returns the longest base code name |
int[] |
max()
Returns an array of the numeric codes for all max stats |
static int[] |
MAXCODES()
Returns an array of the numeric codes for all max stats |
java.lang.String |
name(int code)
Returns the name of the stat code |
static java.lang.String |
NAME(int code)
Returns the name of the stat code |
static java.lang.String[] |
NAMES()
Returns the names of the various stats |
static void |
reset()
|
static int |
RVSCMMSGMAP(int code)
Returns the Reverse CMMsg mapping of the stat from MsgCode -> Stat Code |
int[] |
saving_throws()
Returns an array of the numeric codes for all save stats |
static int[] |
SAVING_THROWS()
Returns an array of the numeric codes for all save stats |
java.lang.String |
shortName(int code)
Returns the name of the stat code |
static java.lang.String |
SHORTNAME(int code)
Returns the short name of the stat code |
int |
toMaxBase(int max)
Returns the code for the base code that matches the given max adj code Returns the code for the max adj code that matches the given base code Returns -1 if the code is not a max adj code. |
static int |
toMAXBASE(int max)
Returns the code for the base code that matches the given max adj code Returns the code for the max adj code that matches the given base code Returns -1 if the code is not a max adj code. |
int |
total()
Returns total number of stat codes 0 - this-1 |
static int |
TOTAL()
Returns total number of stat codes 0 - this-1 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CharStats.CODES()
Method Detail |
---|
public static CharStats.CODES c(byte c)
public static CharStats.CODES instance()
public static void reset()
public static int[] BASECODES()
public static int LONNGEST_BASECODE_NAME()
public static java.lang.String[] BASENAMES()
public int[] base()
public static boolean isBASE(int code)
code
- the STAT code to check
public boolean isBase(int code)
code
- the STAT code to check
public static int toMAXBASE(int max)
max
- the MAX state adjustment code
public int toMaxBase(int max)
max
- the MAX state adjustment code
public static int[] MAXCODES()
public int[] max()
public static int TOTAL()
public int total()
public static int[] ALLCODES()
public int[] all()
public static int[] SAVING_THROWS()
public int[] saving_throws()
public static java.lang.String[] NAMES()
public static java.lang.String NAME(int code)
code
- the stat code
public static java.lang.String SHORTNAME(int code)
code
- the stat code
public java.lang.String name(int code)
code
- the stat code
public java.lang.String shortName(int code)
code
- the stat code
public static java.lang.String[] DESCS()
public static java.lang.String DESC(int code)
code
- the stat code
public java.lang.String desc(int code)
code
- the stat code
public static java.lang.String[] ABBRS()
public static java.lang.String ABBR(int code)
code
- the stat code
public java.lang.String abbr(int code)
code
- the stat code
public static java.lang.String[] ATTDESCS()
public static java.lang.String ATTDESC(int code)
code
- the stat code
public static int[] CMMSGMAP()
public static int CMMSGMAP(int code)
code
- the CMMsg mapping for the given stat code
public static int RVSCMMSGMAP(int code)
code
- the Stat mapping for the given CMMsg code or -1
public int find(java.lang.String name, boolean exactOnly)
name
- the case insensitive nameexactOnly
- true to only return exact matches, false to do otherwise
public static int findWhole(java.lang.String name, boolean exactOnly)
name
- the case insensitive nameexactOnly
- true to only return exact matches, false to do otherwise
public void addBaseStat(java.lang.String abbr, java.lang.String desc, java.lang.String name, java.lang.String attDesc, int cmmsgMap)
abbr
- 1-3 letter short code for this statdesc
- longer description of this statname
- space-free coded name of this statattDesc
- description of someone with this stat in abundancecmmsgMap
- a CMMsg messf code that saves with this statpublic void addMaxStat(int baseCode, java.lang.String abbr, java.lang.String desc, java.lang.String name, java.lang.String attDesc, int cmmsgMap)
baseCode
- corresponding base stat codeabbr
- 1-3 letter short code for this statdesc
- longer description of this statname
- space-free coded name of this statattDesc
- description of someone with this stat in abundancecmmsgMap
- a CMMsg message code that saves with this statpublic void addSavingThrow(java.lang.String abbr, java.lang.String desc, java.lang.String name, java.lang.String attDesc, int cmmsgMap)
abbr
- 1-3 letter short code for this statdesc
- longer description of this statname
- space-free coded name of this statattDesc
- description of someone with this stat in abundancecmmsgMap
- a CMMsg message code that saves with this statpublic void addAllStat(java.lang.String abbr, java.lang.String desc, java.lang.String name, java.lang.String attDesc, int cmmsgMap, boolean base)
abbr
- 1-3 letter short code for this statdesc
- longer description of this statname
- space-free coded name of this statattDesc
- description of someone with this stat in abundancecmmsgMap
- a CMMsg message code that saves with this statbase
- true if the code is a base stat, false if a save or something else
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |