CMAbleParmspublic interface AbilityParameters extends CMLibrary
| Modifier and Type | Interface | Description | 
|---|---|---|
| static interface  | AbilityParameters.AbilityParmEditor | The main interface for the individual column editors. | 
| static interface  | AbilityParameters.AbilityRecipeData | An AbilityParameters interface for passing around a completely decoded CraftorAbility
 (Common Skill) recipe list, ready for manipulation by users. | 
| static class  | AbilityParameters.ParmType | The column or single parameter types | 
idConverter| Modifier and Type | Method | Description | 
|---|---|---|
| Ability | convertAbilityToGeneric(Ability A) | Attempts to convert a coded Ability into a generic one. | 
| java.util.Map<java.lang.String,AbilityParameters.AbilityParmEditor> | getEditors() | Map of all the Ability Parameter editor objects, keyed by their parameter
 column ID. | 
| java.lang.String | getGenericClassID(Ability A) | Return the generic class type that most closely matches the
 given ability. | 
| java.lang.StringBuffer | getRecipeList(RecipeDriven iA) | Given an CraftorAbility object (usually a common skill), this method will load the raw
 recipe file and return it as a stringbuffer. | 
| java.lang.String | makeRecipeFromItem(ItemCraftor C,
                  Item I) | Given an ItemCraftor object (usually a common skill), and an item which the ItemCraftor
 might have crafted, this method will construct a single Recipe text line coded for use
 by a Recipe object. | 
| void | modifyRecipesList(MOB mob,
                 java.lang.String recipeFilename,
                 java.lang.String recipeFormat) | Main method for altering a particular recipe list from any of the crafting common
 skills, from the command line, for the given mob. | 
| AbilityParameters.AbilityRecipeData | parseRecipe(java.lang.String recipeFilename,
           java.lang.String recipeFormat) | Mian parser for the crafting common skill recipe parsers. | 
| void | parseWearLocation(short[] layerAtt,
                 short[] layers,
                 long[] wornLoc,
                 boolean[] logicalAnd,
                 double[] hardBonus,
                 java.lang.String wearLocation) | Parses a coded wear location, for armor-type items that have particular
 wear locations, and fills in the given arrays with the information
 contained therein. | 
| void | resaveRecipeFile(MOB mob,
                java.lang.String recipeFilename,
                java.util.List<DVector> rowsV,
                java.util.List<? extends java.lang.Object> columnsV,
                boolean saveVFS) | Resaves the given recipe file given the editor and data information, already parsed for easy
 manipulation. | 
| void | testRecipeParsing(java.lang.StringBuffer recipesString,
                 java.lang.String recipeFormat) | Test method for the crafting common skill recipe parsers. | 
| void | testRecipeParsing(java.lang.String recipeFilename,
                 java.lang.String recipeFormat,
                 boolean save) | Test method for the crafting common skill recipe parsers. | 
activate, getServiceClient, L, propertiesLoaded, shutdowncopyOf, ID, initializeClass, name, newInstancevoid parseWearLocation(short[] layerAtt,
                       short[] layers,
                       long[] wornLoc,
                       boolean[] logicalAnd,
                       double[] hardBonus,
                       java.lang.String wearLocation)
layerAtt - one dimensional array with the layer attributeslayers - one dimensional array with the layer levelwornLoc - one dimensional array with the wear location bitmaplogicalAnd - one dimensional array with the boolean for whether the location bitmap is AND or ORhardBonus - one dimensional array with the hardness bonus (an armor bonus basically)wearLocation - The coded wear location stringvoid modifyRecipesList(MOB mob, java.lang.String recipeFilename, java.lang.String recipeFormat) throws java.io.IOException
mob - the mob who is editing this recipe filerecipeFilename - the unpathed regular filename of the recipe file to editrecipeFormat - the recipe format from the crafting skill recipe format stringjava.io.IOException - an i/o error in session communicationRecipeDriven.getRecipeFilename(), 
RecipeDriven.getRecipeFormat()void testRecipeParsing(java.lang.String recipeFilename,
                       java.lang.String recipeFormat,
                       boolean save)
                throws CMException
recipeFilename - the unpathed regular filename of the recipe data to start withrecipeFormat - the recipe format coded string fromsave - true to re-save the recipes file, false not toCMException - a parse error, if anyRecipeDriven.getRecipeFilename(), 
RecipeDriven.getRecipeFormat()void testRecipeParsing(java.lang.StringBuffer recipesString,
                       java.lang.String recipeFormat)
                throws CMException
recipesString - the raw loaded recipe datarecipeFormat - the recipe format coded string fromCMException - a parse error, if anyRecipeDriven.getRecipeFilename(), 
RecipeDriven.getRecipeFormat()AbilityParameters.AbilityRecipeData parseRecipe(java.lang.String recipeFilename, java.lang.String recipeFormat)
recipeFilename - the unpathed regular filename of the recipe data to start withrecipeFormat - the recipe format coded string fromRecipeDriven.getRecipeFilename(), 
RecipeDriven.getRecipeFormat(), 
AbilityParameters.AbilityRecipeDatajava.util.Map<java.lang.String,AbilityParameters.AbilityParmEditor> getEditors()
void resaveRecipeFile(MOB mob, java.lang.String recipeFilename, java.util.List<DVector> rowsV, java.util.List<? extends java.lang.Object> columnsV, boolean saveVFS)
mob - the mob doing the save, used only for loggingrecipeFilename - the plain unpathedrowsV - the altered data rowscolumnsV - the recipe column informationsaveVFS - true to save to vfs, false for local hard driveSee also dev notes belowjava.lang.StringBuffer getRecipeList(RecipeDriven iA)
iA - the CraftorAbility skillRecipeDrivenjava.lang.String makeRecipeFromItem(ItemCraftor C, Item I) throws CMException
C - the ItemCraftor skillI - the Item to return a recipe forCMException - a recipe syntax error in generating the recipeItemCraftor, 
Recipesjava.lang.String getGenericClassID(Ability A)
A - the Ability to look