|
|||||||||
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.Costuming
public class Costuming
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 | |
---|---|
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
|
protected static int |
RCP_WOOD
|
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 | |
---|---|
Costuming()
|
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 |
canMend(MOB mob,
Environmental E,
boolean quiet)
|
protected boolean |
deconstructRecipeInto(MOB mob,
Item I,
Recipe R)
|
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.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. |
double |
getItemWeightMultiplier(boolean bundling)
Returns the ratio of the weight of material used to make an item with this skill versus the item weight when finished |
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. |
protected java.util.List<java.util.List<java.lang.String>> |
loadRecipes()
|
protected boolean |
masterCraftCheck(Item I)
|
boolean |
mayICraft(Item I)
Returns whether the given item could have been crafted by this skill. |
protected boolean |
mayILearnToCraft(MOB mob,
Item I)
|
java.lang.String |
name()
The nice displayable name of this instance of this object |
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. |
java.lang.String |
supportedResourceString()
|
boolean |
supportsDeconstruction()
Returns true if mundane items can be demonstructed into recipes with this skill. |
boolean |
supportsMending(Physical item)
Returns whether this skill can mend the given thing. |
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.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 |
Methods inherited from interface com.planet_ink.coffee_mud.Abilities.interfaces.CraftorAbility |
---|
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, 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 |
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, 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 |
Field Detail |
---|
protected static final int RCP_WOOD
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
Constructor Detail |
---|
public Costuming()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class CraftingSkill
public java.lang.String name()
Tickable
name
in interface CMObject
name
in interface Tickable
name
in class CraftingSkill
Environmental.Name()
public java.lang.String[] triggerStrings()
Ability
triggerStrings
in interface Ability
triggerStrings
in class GatheringSkill
Ability.putInCommandlist()
public java.lang.String supportedResourceString()
supportedResourceString
in class GatheringSkill
public java.lang.String parametersFormat()
CraftorAbility
parametersFormat
in interface CraftorAbility
public java.util.List<java.util.List<java.lang.String>> fetchMyRecipes(MOB mob)
CraftorAbility
fetchMyRecipes
in interface CraftorAbility
mob
- the mob to check for extra recipes
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
public java.lang.String parametersFile()
CraftorAbility
parametersFile
in interface CraftorAbility
parametersFile
in class CraftingSkill
protected java.util.List<java.util.List<java.lang.String>> loadRecipes()
loadRecipes
in class CraftingSkill
public boolean supportsDeconstruction()
ItemCraftor
supportsDeconstruction
in interface ItemCraftor
public double getItemWeightMultiplier(boolean bundling)
ItemCraftor
getItemWeightMultiplier
in interface ItemCraftor
getItemWeightMultiplier
in class CraftingSkill
bundling
- true if the item being created is just a raw resource bundle
public void unInvoke()
Ability
unInvoke
in interface Ability
unInvoke
in class CommonSkill
Ability.canBeUninvoked()
protected boolean deconstructRecipeInto(MOB mob, Item I, Recipe R)
deconstructRecipeInto
in class CraftingSkill
protected boolean masterCraftCheck(Item I)
protected boolean mayILearnToCraft(MOB mob, Item I)
mayILearnToCraft
in class CraftingSkill
public boolean mayICraft(Item I)
ItemCraftor
mayICraft
in interface ItemCraftor
mayICraft
in class CraftingSkill
I
- the item to examine
public boolean supportsMending(Physical item)
MendingSkill
supportsMending
in interface MendingSkill
item
- the item to check
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
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 |