|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CraftorAbility
This interface denotes an ability that also incidentally is capable of generating objects, usually items. This is probably a common skill, but one could imagine an craftor also being a spell that generates its own items. Also the generation is an incidental and internal aspect of the ability, these methods allow that functionality to be exposed for archon use.
Field Summary |
---|
Method Summary | |
---|---|
java.util.List<java.util.List<java.lang.String>> |
fetchMyRecipes(MOB mob)
A list containing an entry for each craftable recipe both standard, and extra recipes from given mob Each craftable recipe is also a list of strings. |
java.util.List<java.util.List<java.lang.String>> |
fetchRecipes()
A list containing an entry for each craftable recipe Each craftable recipe is also a list of strings. |
java.lang.String |
getDecodedComponentsDescription(MOB mob,
java.util.List<java.lang.String> recipe)
Given a raw recipe, returns a description of the required components to build it. |
Pair<java.lang.String,java.lang.Integer> |
getDecodedItemNameAndLevel(java.util.List<java.lang.String> recipe)
Given a raw recipe, returns the raw name and level of the item built therefrom. |
java.util.List<java.util.List<java.lang.String>> |
matchingRecipeNames(java.lang.String recipeName,
boolean beLoose)
Returns a vector containing an entry for each craftable recipe whose name matches the given name. |
java.util.List<java.lang.Integer> |
myResources()
Returns a list of Integer objects where each Integer is a fully qualified RawMaterial code. |
java.lang.String |
parametersFile()
A String naming the file where the recipes are found |
java.lang.String |
parametersFormat()
A String containing the format of each entry in the parameter file in a recipe. |
Methods inherited from interface com.planet_ink.coffee_mud.Abilities.interfaces.Ability |
---|
abilityCode, abstractQuality, accountForYourself, adjustedLevel, affecting, appropriateToMyFactions, autoInvocation, bubbleAffect, canAffect, canAffect, canBeLearnedBy, canBePracticedBy, canBeTaughtBy, canBeUninvoked, canTarget, canTarget, castingQuality, castingTime, checkedCastingCost, classificationCode, combatCastingTime, enchantQuality, externalFiles, flags, getTrainingCost, helpProficiency, invoke, invoke, invoker, isAutoInvoked, isNowAnAutoEffect, makeLongLasting, makeNonUninvokable, practice, preInvoke, proficiency, proficiencyCheck, putInCommandlist, requirements, setAbilityCode, setAffectedOne, setInvoker, setProficiency, startTickDown, teach, triggerStrings, unInvoke, usageCost, usageType |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
---|
description, displayText, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
---|
getTickStatus, name, tick |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
---|
affectCharState, affectCharStats, affectPhyStats |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
---|
executeMsg, okMessage |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
---|
amDestroyed, destroy, isSavable, setSavable |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, ID, initializeClass, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
Method Detail |
---|
java.util.List<java.util.List<java.lang.String>> fetchRecipes()
java.util.List<java.util.List<java.lang.String>> fetchMyRecipes(MOB mob)
mob
- the mob to check for extra recipes
java.lang.String parametersFormat()
java.lang.String parametersFile()
java.util.List<java.util.List<java.lang.String>> matchingRecipeNames(java.lang.String recipeName, boolean beLoose)
recipeName
- the name of the recipe to craftbeLoose
- whether to be specific or "loose" with name matching
java.util.List<java.lang.Integer> myResources()
RawMaterial
java.lang.String getDecodedComponentsDescription(MOB mob, java.util.List<java.lang.String> recipe)
mob
- the potential builderrecipe
- the raw recipe description
Pair<java.lang.String,java.lang.Integer> getDecodedItemNameAndLevel(java.util.List<java.lang.String> recipe)
recipe
- the raw recipe description
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |