com.planet_ink.coffee_mud.Items.interfaces
Class Wearable.CODES

java.lang.Object
  extended by com.planet_ink.coffee_mud.Items.interfaces.Wearable.CODES
Enclosing interface:
Wearable

public static class Wearable.CODES
extends java.lang.Object

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

Wearable.CODES

public Wearable.CODES()
Method Detail

c

public static Wearable.CODES c(byte c)

instance

public static Wearable.CODES instance()

reset

public static void reset()

TOTAL

public static int TOTAL()
Returns total number of codes 0 - this-1

Returns:
total number of codes 0 - this-1

total

public int total()
Returns total number of codes 0 - this-1

Returns:
total number of codes 0 - this-1

ALL_ORDERED

public static long[] ALL_ORDERED()
Returns an array of the numeric codes for all locations

Returns:
an array of the numeric codes for all locations

all_ordered

public long[] all_ordered()
Returns an array of the numeric codes for all locations

Returns:
an array of the numeric codes for all locations

ALL

public static long[] ALL()
Returns an array of the numeric codes for all locations

Returns:
an array of the numeric codes for all locations

all

public long[] all()
Returns an array of the numeric codes for all locations

Returns:
an array of the numeric codes for all locations

GET

public static long GET(int x)
Returns an the numeric codes of the indexes locations code

Parameters:
x - the indexed locations code
Returns:
an the numeric codes of the indexes locations code

get

public long get(int x)
Returns an the numeric codes of the indexes locations code

Parameters:
x - the indexed locations code
Returns:
an the numeric codes of the indexes locations code

FINDDEX_ignoreCase

public static int FINDDEX_ignoreCase(java.lang.String rsc)
Returns the index of the names locations, or -1

Parameters:
rsc - the resource name
Returns:
the index of the names locations, or -1

findDex_ignoreCase

public int findDex_ignoreCase(java.lang.String rsc)
Returns the index of the names locations, or -1

Parameters:
rsc - the resource name
Returns:
the index of the names locations, or -1

FIND_ignoreCase

public static long FIND_ignoreCase(java.lang.String rsc)
Returns the code of the names , or -1

Parameters:
rsc - the resource name
Returns:
the code of the names , or -1

find_ignoreCase

public long find_ignoreCase(java.lang.String rsc)
Returns the code of the names , or -1

Parameters:
rsc - the resource name
Returns:
the code of the names , or -1

FINDDEX_endsWith

public static int FINDDEX_endsWith(java.lang.String rsc)
Returns the index of the names locations, or -1

Parameters:
rsc - the resource name
Returns:
the index of the names locations, or -1

findDex_endsWith

public int findDex_endsWith(java.lang.String rsc)
Returns the index of the names locations, or -1

Parameters:
rsc - the resource name
Returns:
the index of the names locations, or -1

FIND_endsWith

public static long FIND_endsWith(java.lang.String rsc)
Returns the index of the names locations, or -1

Parameters:
rsc - the resource name
Returns:
the index of the names locations, or -1

find_endsWith

public long find_endsWith(java.lang.String rsc)
Returns the index of the names locations, or -1

Parameters:
rsc - the resource name
Returns:
the index of the names locations, or -1

LISTED_CODES

public static java.lang.String LISTED_CODES(long wornCode)
Returns a comma-delimited list of location names represented by the given worn code.

Parameters:
wornCode - the worn code
Returns:
the list of names

listedCodes

public java.lang.String listedCodes(long wornCode)
Returns a comma-delimited list of location names represented by the given worn code.

Parameters:
wornCode - the worn code
Returns:
the list of names

IS_VALID

public static boolean IS_VALID(int code)
Returns whether the code is valid

Parameters:
code - the resource code
Returns:
whether the code is valid

NAMES

public static java.lang.String[] NAMES()
Returns the names of the various locations

Returns:
the names of the various locations

NAMESUP

public static java.lang.String[] NAMESUP()
Returns the names of the various locations

Returns:
the names of the various locations

names

public java.lang.String[] names()
Returns the names of the various locations

Returns:
the names of the various locations

namesup

public java.lang.String[] namesup()
Returns the names of the various locations

Returns:
the names of the various locations

NAME

public static java.lang.String NAME(int code)
Returns the name of the locations

Parameters:
code - the code
Returns:
the name of the locations

NAMEUP

public static java.lang.String NAMEUP(int code)
Returns the name of the locations

Parameters:
code - the code
Returns:
the name of the locations

name

public java.lang.String name(int code)
Returns the name of the code

Parameters:
code - the code
Returns:
the name of the code

nameup

public java.lang.String nameup(int code)
Returns the name of the code

Parameters:
code - the code
Returns:
the name of the code

NAME

public static java.lang.String NAME(long code)
Returns the name of the locations

Parameters:
code - the code
Returns:
the name of the locations

NAMEUP

public static java.lang.String NAMEUP(long code)
Returns the name of the locations

Parameters:
code - the code
Returns:
the name of the locations

name

public java.lang.String name(long code)
Returns the name of the code

Parameters:
code - the code
Returns:
the name of the code

nameup

public java.lang.String nameup(long code)
Returns the name of the code

Parameters:
code - the code
Returns:
the name of the code

usual

public java.lang.String usual(long code)
Returns the name of typical equipment here

Parameters:
code - the code
Returns:
the name of typical equipment here

USUAL

public static java.lang.String USUAL(long code)
Returns the name of typical equipment here

Parameters:
code - the code
Returns:
the name of typical equipment here

DEPENDENCY_MASKS

public static long[] DEPENDENCY_MASKS()
Returns the location dependency mask (or -1) of the various locations

Returns:
the location dependency mask (or -1) of the various locations

dependency_masks

public long[] dependency_masks()
Returns the location dependency mask (or -1) of the various locations

Returns:
the location dependency mask (or -1) of the various locations

MATERIAL_WEIGHT_POINTS

public 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. These weights are broken, in turn, into values for cloth, leather, and metal armors respectively.

Returns:
the doule double array

material_weight_points

public 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. These weights are broken, in turn, into values for cloth, leather, and metal armors respectively.

Returns:
the doule double array

LOCATION_STRENGTH_POINTS

public static double[] LOCATION_STRENGTH_POINTS()
Returns an array of the protective strength of each location

Returns:
an array of the protective strength of each location

location_strength_points

public double[] location_strength_points()
Returns an array of the protective strength of each location

Returns:
an array of the protective strength of each location

add

public 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. I suspect this stuff works. I also suspect it is not used, in favor of the hard coded stuff above.

Parameters:
desc - the wear location description
dependencyMask - the dependency locations
armorStrength - armor strength factor
wornOrder - the worn order
clothWeight - the cloth weight factor
leatherWeight - the leather weight factor
metalWeight - the metal weight factor
usualName - for auto-generated gear, a noun that might go here

replace

public 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. I suspect this stuff works. I also suspect it is not used, in favor of the hard coded stuff above.

Parameters:
codeIndex - the index of the location to replace
desc - the wear location description
dependencyMask - the dependency locations
armorStrength - armor strength factor
wornOrder - the worn order
clothWeight - the cloth weight factor
leatherWeight - the leather weight factor
metalWeight - the metal weight factor
usualName - the usual equipment name