|
|||||||||
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.Injury
public class Injury
Field Summary | |
---|---|
PairVector<java.lang.String,java.lang.Integer>[] |
injuries
|
static int[] |
INJURYCHANCE
|
int |
lastHP
|
protected java.lang.String |
lastLoc
|
protected CMMsg |
lastMsg
|
static java.lang.String[][] |
TRANSLATE
|
Fields inherited from class com.planet_ink.coffee_mud.Abilities.StdAbility |
---|
affected, amDestroyed, canBeUninvoked, empty, invoker, isAnAutoEffect, lastCastHelp, miscText, proficiency, savable, tickDown, unInvoked |
Constructor Summary | |
---|---|
Injury()
|
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. |
java.util.List<java.lang.String> |
affectedLimbNameSet()
The opposite of the unaffectedLimbSet method, this method returns the list of the names of those parts which have been damaged. |
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. |
Item |
damageLimb(java.lang.String limbName)
Performs the very dirty business of mangling the item of the given name on the given target. |
java.lang.String |
displayText()
Gets the raw string used to show what this object looks like in the room. |
java.lang.String |
fixMessageString(java.lang.String message,
java.lang.String loc)
|
java.lang.String |
getHealthConditionDesc()
Returns a basic description of the health problem, as it would be observed by others. |
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. |
java.lang.String |
name()
The nice displayable name of this instance of this object |
boolean |
okMessage(Environmental host,
CMMsg msg)
The general message event previewer for the object. |
boolean |
putInCommandlist()
Returns whether this skills triggerStrings should be places in the master list of commands, unlike properties or other hidden skills. |
void |
restoreLimb(java.lang.String limbName)
Restores a missing or damaged part, denoted by the given string, and managed by the given LimbDamage property |
void |
setMiscText(java.lang.String txt)
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 |
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. |
boolean |
tick(Tickable ticking,
int tickID)
this is the method which is called periodically by the threading engine. |
java.util.List<java.lang.String> |
unaffectedLimbSet()
Returns a fully-qualified list of those parts of the given object which have not yet gotten damaged from it. |
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, finalize, 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, checkedCastingCost, combatCastingTime, enchantQuality, externalFiles, flags, getTrainingCost, helpProficiency, invoke, invoker, isAutoInvoked, isNowAnAutoEffect, makeLongLasting, makeNonUninvokable, practice, preInvoke, proficiency, proficiencyCheck, requirements, setAbilityCode, setAffectedOne, setInvoker, setProficiency, startTickDown, teach, triggerStrings, usageCost |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
---|
description, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setName |
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 |
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 |
---|
public PairVector<java.lang.String,java.lang.Integer>[] injuries
protected CMMsg lastMsg
protected java.lang.String lastLoc
public int lastHP
public static final int[] INJURYCHANCE
public static java.lang.String[][] TRANSLATE
Constructor Detail |
---|
public Injury()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdAbility
public java.lang.String name()
Tickable
name
in interface CMObject
name
in interface Tickable
name
in class StdAbility
Environmental.Name()
public java.lang.String getHealthConditionDesc()
HealthCondition
getHealthConditionDesc
in interface HealthCondition
public java.lang.String displayText()
Environmental
displayText
in interface Environmental
displayText
in class StdAbility
protected int canAffectCode()
StdAbility
canAffectCode
in class StdAbility
Ability
protected int canTargetCode()
StdAbility
canTargetCode
in class StdAbility
Ability
public int abstractQuality()
Ability
abstractQuality
in interface Ability
abstractQuality
in class StdAbility
Ability
public boolean putInCommandlist()
Ability
putInCommandlist
in interface Ability
putInCommandlist
in class StdAbility
Ability.triggerStrings()
public boolean canBeUninvoked()
Ability
canBeUninvoked
in interface Ability
canBeUninvoked
in class StdAbility
Ability.makeNonUninvokable()
public int classificationCode()
Ability
classificationCode
in interface Ability
classificationCode
in class StdAbility
Ability
public int usageType()
Ability
usageType
in interface Ability
usageType
in class StdAbility
Ability
public void unInvoke()
Ability
unInvoke
in interface Ability
unInvoke
in class StdAbility
Ability.canBeUninvoked()
public java.lang.String text()
Environmental
text
in interface Environmental
text
in class StdAbility
public void setMiscText(java.lang.String txt)
Environmental
setMiscText
in interface Environmental
setMiscText
in class StdAbility
txt
- either an open internal text string, or XMLpublic java.util.List<java.lang.String> unaffectedLimbSet()
LimbDamage
unaffectedLimbSet
in interface LimbDamage
public Item damageLimb(java.lang.String limbName)
LimbDamage
damageLimb
in interface LimbDamage
limbName
- the name of the limb to mangle, fully qualified.
public java.util.List<java.lang.String> affectedLimbNameSet()
LimbDamage
affectedLimbNameSet
in interface LimbDamage
public void restoreLimb(java.lang.String limbName)
LimbDamage
restoreLimb
in interface LimbDamage
limbName
- the name of the part to restore.public boolean tick(Tickable ticking, int tickID)
Tickable
tick
in interface Tickable
tick
in class StdAbility
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 fixMessageString(java.lang.String message, java.lang.String loc)
public boolean okMessage(Environmental host, CMMsg msg)
MsgListener
okMessage
in interface MsgListener
okMessage
in class StdAbility
host
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that wants to be executed
CMMsg
,
CMMsg.source()
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 StdAbility
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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |