|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.planet_ink.coffee_mud.Items.interfaces.Wearable.CODES
public static class Wearable.CODES
Global location stat code data collector
Constructor Summary | |
---|---|
Wearable.CODES()
|
Method Summary | |
---|---|
void |
add(java.lang.String desc,
long dependencyMask,
double armorStrength,
int wornOrder,
double clothWeight,
double leatherWeight,
double metalWeight,
java.lang.String usualName)
Adds a new wear location. |
long[] |
all_ordered()
Returns an array of the numeric codes for all locations |
static long[] |
ALL_ORDERED()
Returns an array of the numeric codes for all locations |
long[] |
all()
Returns an array of the numeric codes for all locations |
static long[] |
ALL()
Returns an array of the numeric codes for all locations |
static Wearable.CODES |
c(byte c)
|
long[] |
dependency_masks()
Returns the location dependency mask (or -1) of the various locations |
static long[] |
DEPENDENCY_MASKS()
Returns the location dependency mask (or -1) of the various locations |
long |
find_endsWith(java.lang.String rsc)
Returns the index of the names locations, or -1 |
static long |
FIND_endsWith(java.lang.String rsc)
Returns the index of the names locations, or -1 |
long |
find_ignoreCase(java.lang.String rsc)
Returns the code of the names , or -1 |
static long |
FIND_ignoreCase(java.lang.String rsc)
Returns the code of the names , or -1 |
int |
findDex_endsWith(java.lang.String rsc)
Returns the index of the names locations, or -1 |
static int |
FINDDEX_endsWith(java.lang.String rsc)
Returns the index of the names locations, or -1 |
int |
findDex_ignoreCase(java.lang.String rsc)
Returns the index of the names locations, or -1 |
static int |
FINDDEX_ignoreCase(java.lang.String rsc)
Returns the index of the names locations, or -1 |
long |
get(int x)
Returns an the numeric codes of the indexes locations code |
static long |
GET(int x)
Returns an the numeric codes of the indexes locations code |
static Wearable.CODES |
instance()
|
static boolean |
IS_VALID(int code)
Returns whether the code is valid |
static java.lang.String |
LISTED_CODES(long wornCode)
Returns a comma-delimited list of location names represented by the given worn code. |
java.lang.String |
listedCodes(long wornCode)
Returns a comma-delimited list of location names represented by the given worn code. |
double[] |
location_strength_points()
Returns an array of the protective strength of each location |
static double[] |
LOCATION_STRENGTH_POINTS()
Returns an array of the protective strength of each location |
double[][] |
material_weight_points()
Returns an array representing the relative weight of items made for each of the several worn locations, in the same order as their numeric value. |
static double[][] |
MATERIAL_WEIGHT_POINTS()
Returns an array representing the relative weight of items made for each of the several worn locations, in the same order as their numeric value. |
java.lang.String |
name(int code)
Returns the name of the code |
static java.lang.String |
NAME(int code)
Returns the name of the locations |
java.lang.String |
name(long code)
Returns the name of the code |
static java.lang.String |
NAME(long code)
Returns the name of the locations |
java.lang.String[] |
names()
Returns the names of the various locations |
static java.lang.String[] |
NAMES()
Returns the names of the various locations |
java.lang.String[] |
namesup()
Returns the names of the various locations |
static java.lang.String[] |
NAMESUP()
Returns the names of the various locations |
java.lang.String |
nameup(int code)
Returns the name of the code |
static java.lang.String |
NAMEUP(int code)
Returns the name of the locations |
java.lang.String |
nameup(long code)
Returns the name of the code |
static java.lang.String |
NAMEUP(long code)
Returns the name of the locations |
void |
replace(int codeIndex,
java.lang.String desc,
long dependencyMask,
double armorStrength,
int wornOrder,
double clothWeight,
double leatherWeight,
double metalWeight,
java.lang.String usualName)
replaces an existing wear location. |
static void |
reset()
|
int |
total()
Returns total number of codes 0 - this-1 |
static int |
TOTAL()
Returns total number of codes 0 - this-1 |
java.lang.String |
usual(long code)
Returns the name of typical equipment here |
static java.lang.String |
USUAL(long code)
Returns the name of typical equipment here |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Wearable.CODES()
Method Detail |
---|
public static Wearable.CODES c(byte c)
public static Wearable.CODES instance()
public static void reset()
public static int TOTAL()
public int total()
public static long[] ALL_ORDERED()
public long[] all_ordered()
public static long[] ALL()
public long[] all()
public static long GET(int x)
x
- the indexed locations code
public long get(int x)
x
- the indexed locations code
public static int FINDDEX_ignoreCase(java.lang.String rsc)
rsc
- the resource name
public int findDex_ignoreCase(java.lang.String rsc)
rsc
- the resource name
public static long FIND_ignoreCase(java.lang.String rsc)
rsc
- the resource name
public long find_ignoreCase(java.lang.String rsc)
rsc
- the resource name
public static int FINDDEX_endsWith(java.lang.String rsc)
rsc
- the resource name
public int findDex_endsWith(java.lang.String rsc)
rsc
- the resource name
public static long FIND_endsWith(java.lang.String rsc)
rsc
- the resource name
public long find_endsWith(java.lang.String rsc)
rsc
- the resource name
public static java.lang.String LISTED_CODES(long wornCode)
wornCode
- the worn code
public java.lang.String listedCodes(long wornCode)
wornCode
- the worn code
public static boolean IS_VALID(int code)
code
- the resource code
public static java.lang.String[] NAMES()
public static java.lang.String[] NAMESUP()
public java.lang.String[] names()
public java.lang.String[] namesup()
public static java.lang.String NAME(int code)
code
- the code
public static java.lang.String NAMEUP(int code)
code
- the code
public java.lang.String name(int code)
code
- the code
public java.lang.String nameup(int code)
code
- the code
public static java.lang.String NAME(long code)
code
- the code
public static java.lang.String NAMEUP(long code)
code
- the code
public java.lang.String name(long code)
code
- the code
public java.lang.String nameup(long code)
code
- the code
public java.lang.String usual(long code)
code
- the code
public static java.lang.String USUAL(long code)
code
- the code
public static long[] DEPENDENCY_MASKS()
public long[] dependency_masks()
public static double[][] MATERIAL_WEIGHT_POINTS()
public double[][] material_weight_points()
public static double[] LOCATION_STRENGTH_POINTS()
public double[] location_strength_points()
public void add(java.lang.String desc, long dependencyMask, double armorStrength, int wornOrder, double clothWeight, double leatherWeight, double metalWeight, java.lang.String usualName)
desc
- the wear location descriptiondependencyMask
- the dependency locationsarmorStrength
- armor strength factorwornOrder
- the worn orderclothWeight
- the cloth weight factorleatherWeight
- the leather weight factormetalWeight
- the metal weight factorusualName
- for auto-generated gear, a noun that might go herepublic void replace(int codeIndex, java.lang.String desc, long dependencyMask, double armorStrength, int wornOrder, double clothWeight, double leatherWeight, double metalWeight, java.lang.String usualName)
codeIndex
- the index of the location to replacedesc
- the wear location descriptiondependencyMask
- the dependency locationsarmorStrength
- armor strength factorwornOrder
- the worn orderclothWeight
- the cloth weight factorleatherWeight
- the leather weight factormetalWeight
- the metal weight factorusualName
- the usual equipment name
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |