|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.planet_ink.coffee_mud.Abilities.StdAbility
com.planet_ink.coffee_mud.Abilities.Common.CommonSkill
com.planet_ink.coffee_mud.Abilities.Common.GatheringSkill
com.planet_ink.coffee_mud.Abilities.Common.CraftingSkill
com.planet_ink.coffee_mud.Abilities.Common.EnhancedCraftingSkill
com.planet_ink.coffee_mud.Abilities.Common.GenCraftSkill
public class GenCraftSkill
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.planet_ink.coffee_mud.Abilities.Common.CraftingSkill |
---|
CraftingSkill.CraftingActivity, CraftingSkill.CraftParms, CraftingSkill.EnhancedExpertise, CraftingSkill.FoundResourceData, CraftingSkill.FoundResources |
Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.Abilities.interfaces.ItemCraftor |
---|
ItemCraftor.ItemKeyPair |
Field Summary | |
---|---|
java.lang.String |
ID
|
protected DoorKey |
key
|
protected static int |
RCP_AMOUNTMATS
|
protected static int |
RCP_ARMORDMG
|
protected static int |
RCP_CAPACITY
|
protected static int |
RCP_CLASSTYPE
|
protected static int |
RCP_CONTAINMASK
|
protected static int |
RCP_MISCTYPE
|
protected static int |
RCP_SPELL
|
protected static int |
RCP_VALUE
|
Fields inherited from class com.planet_ink.coffee_mud.Abilities.Common.EnhancedCraftingSkill |
---|
HIDE_MASK, materialAdjustments, STAGE_MASK |
Fields inherited from class com.planet_ink.coffee_mud.Abilities.Common.CraftingSkill |
---|
activity, buildingI, CF_AMOUNT, CF_HARDNESS, CF_MATERIAL, CF_TOTAL, fireRequired, FOUND_AMT, FOUND_CODE, last25items, messedUp, RCP_FINALNAME, RCP_LEVEL, RCP_TICKS, recipeHolder |
Fields inherited from class com.planet_ink.coffee_mud.Abilities.Common.GatheringSkill |
---|
supportedResources |
Fields inherited from class com.planet_ink.coffee_mud.Abilities.Common.CommonSkill |
---|
aborted, activityRoom, bonusYield, bundling, displayText, fakeFire, helping, helpingAbility, lastBaseDuration, playSound, resourcesMap, tickUp, uninvokeEmpties, verb |
Fields inherited from class com.planet_ink.coffee_mud.Abilities.StdAbility |
---|
affected, amDestroyed, canBeUninvoked, empty, invoker, isAnAutoEffect, lastCastHelp, miscText, proficiency, savable, tickDown, unInvoked |
Fields inherited from interface com.planet_ink.coffee_mud.Abilities.interfaces.ItemCraftor |
---|
CRAFTING_BRAND_STR_ANON, CRAFTING_BRAND_STR_NAME, CRAFTING_BRAND_STR_PREFIX |
Constructor Summary | |
---|---|
GenCraftSkill()
|
Method Summary | |
---|---|
protected boolean |
autoGenInvoke(MOB mob,
java.util.List<java.lang.String> commands,
Physical givenTarget,
boolean auto,
int asLevel,
int autoGenerate,
boolean forceLevels,
java.util.List<Item> crafted)
This method is called when a player or the system invokes this skill, especially when they intend to use the skill to auto-generate an item instead of following the more friendly user-crafting. |
protected boolean |
canBeDoneSittingDown()
|
protected boolean |
canMend(MOB mob,
Environmental E,
boolean quiet)
|
protected void |
cloneFix(Ability E)
|
protected int |
getCodeNum(java.lang.String code)
|
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. |
int |
getSaveStatIndex()
Returns the index into the stat codes array where extra savable fields begins. |
java.lang.String |
getStat(java.lang.String code)
An alternative means of retreiving the values of those fields on this object which are modifiable at run-time by builders. |
java.lang.String[] |
getStatCodes()
Returns an array of the string names of those fields which are modifiable on this object at run-time by builders. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
boolean |
invoke(MOB mob,
java.util.List<java.lang.String> commands,
Physical givenTarget,
boolean auto,
int asLevel)
This method is called when a player or the system invokes this skill, casts this spell, etc. |
boolean |
isGeneric()
Whether the fields of this item are set in code, or set by builders. |
protected java.util.List<java.util.List<java.lang.String>> |
loadRecipes()
|
boolean |
mayICraft(Item I)
Returns whether the given item could have been crafted by this skill. |
boolean |
mayICraft(MOB mob,
Item I)
|
java.lang.String |
name()
The nice displayable name of this instance of this object |
java.lang.String |
Name()
The raw unmodified name of this object as stored in the database. |
CMObject |
newInstance()
Returns a new instance of this class. |
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. |
boolean |
sameAs(Environmental E)
Whether this object instance is functionally identical to the object passed in. |
void |
setStat(java.lang.String code,
java.lang.String val)
An alternative means of setting the values of those fields on this object which are modifiable at run-time by builders. |
java.lang.String |
supportedResourceString()
|
boolean |
supportsDeconstruction()
Returns true if mundane items can be demonstructed into recipes with this skill. |
boolean |
supportsMending(Physical I)
|
boolean |
tick(Tickable ticking,
int tickID)
this is the method which is called periodically by the threading engine. |
java.lang.String[] |
triggerStrings()
A set of the command strings the user types to access this command when it is listed as a skill ability. |
void |
unInvoke()
If this skill is uninvokable, this method will uninvoke it, remove it as an effect on the target, and shut it down. |
Methods inherited from class com.planet_ink.coffee_mud.Abilities.Common.EnhancedCraftingSkill |
---|
addSpellAdjustment, addStatAdjustment, applyName, applyName, cleanBuildingNameForXP, enhancedTypes, enhanceItem, enhanceList, fetchFoundResourceData, fetchMyRecipes, fixDataForComponents, getAllThisSkillsDefinitions, getLocalExpCode, getThisSkillsExpertises, loadList, parametersFields, supportsArmors, supportsWeapons |
Methods inherited from class com.planet_ink.coffee_mud.Abilities.Common.GatheringSkill |
---|
affectPhyStats, bundle, fixResourceRequirement, myResources |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.planet_ink.coffee_mud.Abilities.interfaces.ItemCraftor |
---|
craftAllItemSets, craftAllItemSets, craftAnyItem, craftItem, craftItem, getItemWeightMultiplier |
Methods inherited from interface com.planet_ink.coffee_mud.Abilities.interfaces.CraftorAbility |
---|
fetchMyRecipes, fetchRecipes, getDecodedItemNameAndLevel, matchingRecipeNames, myResources |
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, invoker, isAutoInvoked, isNowAnAutoEffect, makeLongLasting, makeNonUninvokable, practice, preInvoke, proficiency, proficiencyCheck, putInCommandlist, requirements, setAbilityCode, setAffectedOne, setInvoker, setProficiency, startTickDown, teach, usageCost, usageType |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
---|
description, displayText, expirationDate, image, L, maxRange, minRange, miscTextFormat, rawImage, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
---|
getTickStatus |
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, initializeClass |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
---|
isStat |
Field Detail |
---|
public java.lang.String ID
protected static final int RCP_AMOUNTMATS
protected static final int RCP_VALUE
protected static final int RCP_CLASSTYPE
protected static final int RCP_MISCTYPE
protected static final int RCP_CAPACITY
protected static final int RCP_ARMORDMG
protected static final int RCP_CONTAINMASK
protected static final int RCP_SPELL
protected DoorKey key
Constructor Detail |
---|
public GenCraftSkill()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class EnhancedCraftingSkill
public java.lang.String Name()
Environmental
Name
in interface Environmental
Name
in class StdAbility
Tickable.name()
public java.lang.String name()
Tickable
name
in interface CMObject
name
in interface Tickable
name
in class EnhancedCraftingSkill
Environmental.Name()
public java.lang.String parametersFormat()
CraftorAbility
parametersFormat
in interface CraftorAbility
parametersFormat
in class EnhancedCraftingSkill
public boolean supportsDeconstruction()
ItemCraftor
supportsDeconstruction
in interface ItemCraftor
supportsDeconstruction
in class EnhancedCraftingSkill
public java.lang.String[] triggerStrings()
Ability
triggerStrings
in interface Ability
triggerStrings
in class GatheringSkill
Ability.putInCommandlist()
protected boolean canBeDoneSittingDown()
canBeDoneSittingDown
in class CommonSkill
public java.lang.String parametersFile()
CraftorAbility
parametersFile
in interface CraftorAbility
parametersFile
in class CraftingSkill
public java.lang.String supportedResourceString()
supportedResourceString
in class GatheringSkill
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
newInstance
in class StdAbility
protected void cloneFix(Ability E)
cloneFix
in class StdAbility
public boolean isGeneric()
Environmental
isGeneric
in interface Environmental
isGeneric
in class StdAbility
Environmental.text()
public int getSaveStatIndex()
Modifiable
getSaveStatIndex
in interface Modifiable
getSaveStatIndex
in class StdAbility
Modifiable.getStatCodes()
,
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
public java.lang.String[] getStatCodes()
Modifiable
getStatCodes
in interface Modifiable
getStatCodes
in class CommonSkill
Modifiable.getStat(String)
,
Modifiable.setStat(String, String)
protected int getCodeNum(java.lang.String code)
getCodeNum
in class CommonSkill
public java.lang.String getStat(java.lang.String code)
Modifiable
getStat
in interface Modifiable
getStat
in class CommonSkill
code
- the name of the field to read.
Modifiable.getStatCodes()
public void setStat(java.lang.String code, java.lang.String val)
Modifiable
setStat
in interface Modifiable
setStat
in class CommonSkill
code
- the name of the field to setval
- the value to set the field toModifiable.getStatCodes()
public boolean sameAs(Environmental E)
Environmental
sameAs
in interface Environmental
sameAs
in class StdAbility
E
- the object to compare this one to
Modifiable.getStatCodes()
,
Modifiable.getStat(String)
public boolean tick(Tickable ticking, int tickID)
Tickable
tick
in interface Tickable
tick
in class CommonSkill
ticking
- a reference to this Tickable objecttickID
- the TICKID_ constant describing this periodic call, as defined in Tickable
Tickable
,
ServiceEngine
,
TickableGroup
protected java.util.List<java.util.List<java.lang.String>> loadRecipes()
loadRecipes
in class CraftingSkill
public void unInvoke()
Ability
unInvoke
in interface Ability
unInvoke
in class CommonSkill
Ability.canBeUninvoked()
public boolean mayICraft(Item I)
ItemCraftor
mayICraft
in interface ItemCraftor
mayICraft
in class CraftingSkill
I
- the item to examine
public boolean mayICraft(MOB mob, Item I)
mayICraft
in class CraftingSkill
public boolean supportsMending(Physical I)
protected boolean canMend(MOB mob, Environmental E, boolean quiet)
canMend
in class CraftingSkill
public java.lang.String getDecodedComponentsDescription(MOB mob, java.util.List<java.lang.String> recipe)
CraftorAbility
getDecodedComponentsDescription
in interface CraftorAbility
getDecodedComponentsDescription
in class EnhancedCraftingSkill
mob
- the potential builderrecipe
- the raw recipe description
public boolean invoke(MOB mob, java.util.List<java.lang.String> commands, Physical givenTarget, boolean auto, int asLevel)
Ability
invoke
in interface Ability
invoke
in class CommonSkill
mob
- the player or mob invoking the skillcommands
- the parameters entered for the skill (minus trigger word)givenTarget
- null, unless being auto-invoked. Represents an override target.auto
- false if player enters command, true if system invokes the commandasLevel
- -1, unless being auto-invoked, when it is the level to invoke it at.
protected boolean autoGenInvoke(MOB mob, java.util.List<java.lang.String> commands, Physical givenTarget, boolean auto, int asLevel, int autoGenerate, boolean forceLevels, java.util.List<Item> crafted)
CraftingSkill
autoGenInvoke
in class CraftingSkill
mob
- the player or mob invoking the skillcommands
- the parameters entered for the skill (minus trigger word)givenTarget
- null, unless being auto-invoked. Represents an override target.auto
- false if player enters command, true if system invokes the commandasLevel
- -1, unless being auto-invoked, when it is the level to invoke it at.autoGenerate
- 0, unless auto generation, in which case it's a RawMaterial Resource Code numberforceLevels
- true to override other level modifiers on the items to force the Stock level.crafted
- when autoGenerate > 0, this is where the auto generated crafted items are placed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |