public static class CharStats.CODES
extends java.lang.Object
| Constructor | Description | 
|---|---|
| CODES() | 
| Modifier and Type | Method | Description | 
|---|---|---|
| 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 | 
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 checkpublic boolean isBase(int code)
code - the STAT code to checkpublic static int toMAXBASE(int max)
max - the MAX state adjustment codepublic int toMaxBase(int max)
max - the MAX state adjustment codepublic 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 codepublic static java.lang.String SHORTNAME(int code)
code - the stat codepublic java.lang.String name(int code)
code - the stat codepublic java.lang.String shortName(int code)
code - the stat codepublic static java.lang.String[] DESCS()
public static java.lang.String DESC(int code)
code - the stat codepublic java.lang.String desc(int code)
code - the stat codepublic static java.lang.String[] ABBRS()
public static java.lang.String ABBR(int code)
code - the stat codepublic java.lang.String abbr(int code)
code - the stat codepublic static java.lang.String[] ATTDESCS()
public static java.lang.String ATTDESC(int code)
code - the stat codepublic static int[] CMMSGMAP()
public static int CMMSGMAP(int code)
code - the CMMsg mapping for the given stat codepublic static int RVSCMMSGMAP(int code)
code - the Stat mapping for the given CMMsg code or -1public int find(java.lang.String name,
                boolean exactOnly)
name - the case insensitive nameexactOnly - true to only return exact matches, false to do otherwisepublic static int findWhole(java.lang.String name,
                            boolean exactOnly)
name - the case insensitive nameexactOnly - true to only return exact matches, false to do otherwisepublic 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