|
|||||||||
| 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.Misc.Amputation
public class Amputation
| Field Summary | |
|---|---|
static int[][] |
extraamuputees
|
protected java.util.Vector |
missingLimbs
|
static boolean[] |
validamputees
|
| Fields inherited from class com.planet_ink.coffee_mud.Abilities.StdAbility |
|---|
affected, amDestroyed, canBeUninvoked, empty, envStats, expertise, invoker, isAnAutoEffect, lastCastHelp, miscText, proficiency, savable, tickDown, unInvoked |
| Constructor Summary | |
|---|---|
Amputation()
|
|
| Method Summary | |
|---|---|
int |
abstractQuality()
Returns a constant value notifying the system of the general quality of the skill, whether it is malicious, beneficial, indifferent, or qualifiably beneficial (ok), as well as whether it is intended to target the invoker (self) or others. |
void |
affectCharState(MOB affected,
CharState affectableState)
This method is called by the recoverCharState() method on other MOB objects. |
void |
affectCharStats(MOB affected,
CharStats affectableStats)
This method is called by the recoverCharStats() method on other MOB objects. |
java.util.Vector |
affectedLimbNameSet(java.lang.Object O,
java.lang.String missing,
java.util.Vector missingLimbs)
Often losing one part means that other parts are instantly affected, like removing an engine includes the spark plugs. |
void |
affectEnvStats(Environmental affected,
EnvStats affectableStats)
This method is called by the recoverEnvStats() method on other Environmental objects. |
Item |
amputate(Environmental target,
Amputator A,
java.lang.String gone)
Performs the very dirty business of amputating the item of the given name from the given target. |
protected int |
canAffectCode()
Designates whether, when used as a property/effect, what sort of objects this ability can affect. |
boolean |
canBeUninvoked()
Whether this skill is allowed to be uninvoked. |
protected int |
canTargetCode()
Designates whether, when invoked as a skill, what sort of objects this ability can effectively target. |
int |
classificationCode()
Returns a bitmap describing the general classification of the skill (spell, skill, chant, or property, etc) and its domain. |
java.util.Vector |
completeLimbNameSet(Environmental E)
|
java.lang.String |
displayText()
Gets the raw string used to show what this object looks like in the room. |
void |
executeMsg(Environmental host,
CMMsg msg)
The general message event handler for the object. |
static int |
getRacialCode(java.lang.String name)
|
MOB |
getTarget(MOB mob,
java.util.Vector commands,
Environmental givenTarget,
boolean quiet)
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
boolean |
invoke(MOB mob,
java.util.Vector commands,
Environmental givenTarget,
boolean auto,
int asLevel)
This method is called when a player or the system invokes this skill, casts this spell, etc. |
java.util.Vector |
missingLimbNameSet()
The opposite of the remainingLimbNameSet method, this method returns the list of the names of those parts which have been amputated. |
java.lang.String |
name()
The displayable name of this object. |
boolean |
putInCommandlist()
Returns whether this skills triggerStrings should be places in the master list of commands, unlike properties or other hidden skills. |
java.util.Vector |
remainingLimbNameSet(Environmental E)
Returns a fully-qualified list of those parts of the given object which have not yet gone missing from it. |
void |
setMiscText(java.lang.String text)
For objects which have false for their isGeneric method, this is used to set any internally coded strings to change the nature or behavior of the object. |
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 |
unamputate(Environmental target,
Amputator A,
java.lang.String gone)
Restores a missing part, denoted by the given string, and managed by the given Amputator property |
void |
unInvoke()
If this skill is uninvokable, this method will uninvoke it, remove it as an effect on the target, and shut it down. |
int |
usageType()
Returns a bitmap made up of constants defined by Ability.USAGE_*. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.planet_ink.coffee_mud.Abilities.interfaces.Ability |
|---|
abilityCode, accountForYourself, adjustedLevel, affecting, appropriateToMyFactions, autoInvocation, bubbleAffect, canAffect, canAffect, canBeLearnedBy, canBePracticedBy, canBeTaughtBy, canTarget, canTarget, castingQuality, castingTime, combatCastingTime, enchantQuality, externalFiles, flags, helpProficiency, invoke, invoker, isAutoInvoked, isNowAnAutoEffect, makeLongLasting, makeNonUninvokable, practice, practicesRequired, preInvoke, proficiency, proficiencyCheck, requirements, setAbilityCode, setAffectedOne, setInvoker, setProficiency, setSavable, startTickDown, teach, trainsRequired, usageCost |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
addEffect, addNonUninvokableEffect, amDestroyed, baseEnvStats, delEffect, description, destroy, envStats, expirationDate, fetchEffect, fetchEffect, image, isGeneric, maxRange, minRange, miscTextFormat, Name, numEffects, rawImage, recoverEnvStats, sameAs, savable, setBaseEnvStats, setDescription, setDisplayText, setExpirationDate, setImage, setName, text |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, tick |
| 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.MsgListener |
|---|
okMessage |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMModifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Behavable |
|---|
addBehavior, addScript, delBehavior, delScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts |
| Field Detail |
|---|
protected java.util.Vector missingLimbs
public static final boolean[] validamputees
public static final int[][] extraamuputees
| Constructor Detail |
|---|
public Amputation()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdAbilitypublic java.lang.String name()
Environmental
name in interface Environmentalname in interface Tickablename in class StdAbilityEnvironmental.Name()public java.lang.String displayText()
Environmental
displayText in interface EnvironmentaldisplayText in class StdAbilityprotected int canAffectCode()
StdAbility
canAffectCode in class StdAbilityAbilityprotected int canTargetCode()
StdAbility
canTargetCode in class StdAbilityAbilitypublic int abstractQuality()
Ability
abstractQuality in interface AbilityabstractQuality in class StdAbilityAbilitypublic boolean putInCommandlist()
Ability
putInCommandlist in interface AbilityputInCommandlist in class StdAbilityAbility.triggerStrings()public java.lang.String[] triggerStrings()
Ability
triggerStrings in interface AbilitytriggerStrings in class StdAbilityAbility.putInCommandlist()public boolean canBeUninvoked()
Ability
canBeUninvoked in interface AbilitycanBeUninvoked in class StdAbilityAbility.makeNonUninvokable()public int classificationCode()
Ability
classificationCode in interface AbilityclassificationCode in class StdAbilityAbilitypublic int usageType()
Ability
usageType in interface AbilityusageType in class StdAbilityAbility
public void executeMsg(Environmental host,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenerexecuteMsg in class StdAbilityhost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsg
public void affectEnvStats(Environmental affected,
EnvStats affectableStats)
StatsAffecting
affectEnvStats in interface StatsAffectingaffectEnvStats in class StdAbilityaffected - the host of the EnvStats object being affectedaffectableStats - the particular EnvStats object being affectedEnvStats,
Environmental,
Environmental.baseEnvStats(),
Environmental.envStats(),
Environmental.recoverEnvStats()
public void affectCharState(MOB affected,
CharState affectableState)
StatsAffecting
affectCharState in interface StatsAffectingaffectCharState in class StdAbilityaffected - the host of the CharState object being affectedaffectableState - the particular CharState object being affectedCharState,
MOB,
MOB.baseState(),
MOB.curState(),
MOB.recoverMaxState()
public void affectCharStats(MOB affected,
CharStats affectableStats)
StatsAffecting
affectCharStats in interface StatsAffectingaffectCharStats in class StdAbilityaffected - the host of the CharStats object being affectedaffectableStats - the particular CharStats object being affectedCharStats,
MOB,
MOB.baseCharStats(),
MOB.charStats(),
MOB.recoverCharStats()public void unInvoke()
Ability
unInvoke in interface AbilityunInvoke in class StdAbilityAbility.canBeUninvoked()
public MOB getTarget(MOB mob,
java.util.Vector commands,
Environmental givenTarget,
boolean quiet)
public void setMiscText(java.lang.String text)
Environmental
setMiscText in interface EnvironmentalsetMiscText in class StdAbilitytext - either an open internal text string, or XMLpublic java.util.Vector missingLimbNameSet()
Amputator
missingLimbNameSet in interface Amputatorpublic java.util.Vector completeLimbNameSet(Environmental E)
public java.util.Vector remainingLimbNameSet(Environmental E)
Amputator
remainingLimbNameSet in interface AmputatorE - the object to scrutinize
public void unamputate(Environmental target,
Amputator A,
java.lang.String gone)
Amputator
unamputate in interface Amputatortarget - the unfortunate targetA - the amputator object managing the targets missing stuffgone - the name of the part to restore.public static int getRacialCode(java.lang.String name)
public java.util.Vector affectedLimbNameSet(java.lang.Object O,
java.lang.String missing,
java.util.Vector missingLimbs)
Amputator