|
|||||||||
| 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
public class StdAbility
| Field Summary | |
|---|---|
protected Environmental |
affected
|
protected boolean |
amDestroyed
|
protected boolean |
canBeUninvoked
|
static java.lang.String[] |
empty
|
protected static EnvStats |
envStats
|
protected short[] |
expertise
|
protected MOB |
invoker
|
protected boolean |
isAnAutoEffect
|
protected long |
lastCastHelp
|
java.lang.String |
miscText
|
protected int |
proficiency
|
protected boolean |
savable
|
protected int |
tickDown
|
protected boolean |
unInvoked
|
| Constructor Summary | |
|---|---|
StdAbility()
|
|
| Method Summary | |
|---|---|
int |
abilityCode()
Returns an optional numeric value whose purpose is entirely contextual. |
protected boolean |
ableOk(MOB mob,
MOB target,
CMMsg msg)
|
protected void |
ableSend(MOB mob,
MOB target,
CMMsg msg)
|
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.lang.String |
accountForYourself()
For use by the identify spell, this should return a nice description of any properties incorporated by this effect. |
void |
addBehavior(Behavior to)
Add a new behavior to this object. |
protected int |
addedTickTime(MOB invokerMOB,
int baseTickTime)
|
void |
addEffect(Ability to)
Add a new effect to this object, whether permanent or temporary. |
void |
addNonUninvokableEffect(Ability to)
Same as addEffect(Ability), but will set the Ability object as never being able to be uninvoked. |
void |
addScript(ScriptingEngine S)
Add a new runnable script to this object. |
int |
adjustedLevel(MOB caster,
int asLevel)
This method calculates the strength level of this skill for the given mob, and taking into account the given override-level (asLevel). |
int |
adjustedMaxInvokerRange(int max)
|
void |
affectCharState(MOB affectedMob,
CharState affectableMaxState)
This method is called by the recoverCharState() method on other MOB objects. |
void |
affectCharStats(MOB affectedMob,
CharStats affectableStats)
This method is called by the recoverCharStats() method on other MOB objects. |
void |
affectEnvStats(Environmental affectedEnv,
EnvStats affectableStats)
This method is called by the recoverEnvStats() method on other Environmental objects. |
Environmental |
affecting()
Returns a reference to the room, item, mob, or exit that is currently being affected by this skill. |
boolean |
amDestroyed()
Whether the destroy() method has been previousy called on this object. |
boolean |
appropriateToMyFactions(MOB mob)
Returns whether there are any Faction reasons why the given mob should not use this skill. |
boolean |
autoInvocation(MOB mob)
An autoinvocating ability is an ability which affects the mob just by having learned the ability. |
EnvStats |
baseEnvStats()
Object containing a set of base, unmodified, mostly numeric fields. |
boolean |
beneficialAffect(MOB mob,
Environmental target,
int asLevel,
int tickAdjustmentFromStandard)
|
boolean |
beneficialVisualFizzle(MOB mob,
Environmental target,
java.lang.String message)
|
boolean |
beneficialWordsFizzle(MOB mob,
Environmental target,
java.lang.String message)
|
boolean |
bubbleAffect()
This method is used to modify the behavior of the affectEnvStats, affectCharStats, and affectCharState methods. |
protected int[] |
buildCostArray(MOB mob,
int consumed,
int minimum)
|
boolean |
canAffect(Environmental E)
Returns whether, when used as a property/effect, this ability can affect the given object. |
boolean |
canAffect(int can_code)
Returns whether, when used as a property/effect, this ability can affect the given type of object. |
protected int |
canAffectCode()
Designates whether, when used as a property/effect, what sort of objects this ability can affect. |
boolean |
canBeLearnedBy(MOB teacher,
MOB student)
Returns whether the given student mob is able and allowed to learn this skill from the given teacher. |
boolean |
canBePracticedBy(MOB teacher,
MOB student)
Returns whether the given teacher mob is able and allowed to practice this skill with the given student *and* whether the student is able and allowed to practice this skill. |
boolean |
canBeTaughtBy(MOB teacher,
MOB student)
Returns whether the given teacher mob is able and allowed to teach this skill to the given student. |
boolean |
canBeUninvoked()
Whether this skill is allowed to be uninvoked. |
boolean |
canTarget(Environmental E)
Returns whether, when used as a skill, this ability can target itself at the given object. |
boolean |
canTarget(int can_code)
Returns whether, when used as a skill, this ability can target itself at an object of the given type. |
protected int |
canTargetCode()
Designates whether, when invoked as a skill, what sort of objects this ability can effectively target. |
int |
castingQuality(MOB mob,
Environmental target)
Serves a purpose similar to that of the Ability abstractQuality() method, but it determines a more exact quality based on a given invoker, target, and assumes an imminent use of the skill. |
protected int |
castingQuality(MOB mob,
Environmental target,
int abstractQuality)
|
double |
castingTime(MOB mob,
java.util.Vector cmds)
Returns the number of actions required to completely activate this skill. |
boolean |
checkComponents(MOB mob)
|
int |
classificationCode()
Returns a bitmap describing the general classification of the skill (spell, skill, chant, or property, etc) and its domain. |
protected void |
cloneFix(Ability E)
|
double |
combatCastingTime(MOB mob,
java.util.Vector cmds)
Returns the number of actions required to completely activate this skill. |
int |
compareTo(CMObject o)
|
CMObject |
copyOf()
Similar to Cloneable.clone(), but does its best to make sure that any internal objects to this class are also copyOfed. |
void |
delBehavior(Behavior to)
Delete a behavior from this object. |
void |
delEffect(Ability to)
Delete an effect from this object, whether permanent or temporary. |
void |
delScript(ScriptingEngine S)
Remove a running script from this object. |
java.lang.String |
description()
The basic description of this object, as shown when the item is directly LOOKed at. |
void |
destroy()
Utterly and permanently destroy this object, not only removing it from the map, but causing this object to be collected as garbage by Java. |
java.lang.String |
displayText()
Gets the raw string used to show what this object looks like in the room. |
protected boolean |
disregardsArmorCheck(MOB mob)
|
int |
enchantQuality()
Identical to abstractQuality() method, but returns a quality based on how the skill or spell behaves as a spell effect on a weapon or on armor. |
EnvStats |
envStats()
Object containing a set of current, modified, usable, mostly numeric fields. |
void |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
int |
experienceLevels(MOB caster,
int asLevel)
|
protected int |
expertise(MOB mob,
int code)
|
long |
expirationDate()
If this object expires, it should have a timestamp saying when it expires, in real time. |
java.util.Vector |
externalFiles()
Any external files which may be required to make this ability work files returned by this method should not be base distrib files! |
Behavior |
fetchBehavior(int index)
Returns a behavior object on this object. |
Behavior |
fetchBehavior(java.lang.String ID)
Returns a behavior object listed on this object. |
Ability |
fetchEffect(int index)
Returns an ability object listed as an effect on this object. |
Ability |
fetchEffect(java.lang.String ID)
Returns an ability object listed as an effect on this object. |
ScriptingEngine |
fetchScript(int x)
Retreive one of the enumerated scripts running on this object |
protected void |
finalize()
|
long |
flags()
Returns a bitmap giving some specific information about the scope and purpose of the skill. |
Environmental |
getAnyTarget(MOB mob,
java.util.Vector commands,
Environmental givenTarget,
int wornReqCode)
|
Environmental |
getAnyTarget(MOB mob,
java.util.Vector commands,
Environmental givenTarget,
int wornReqCode,
boolean checkOthersInventory)
|
Environmental |
getAnyTarget(MOB mob,
java.util.Vector commands,
Environmental givenTarget,
int wornReqCode,
boolean checkOthersInventory,
boolean alreadyAffOk)
|
int |
getBeneficialTickdownTime(MOB mob,
Environmental target,
int tickAdjustmentFromStandard,
int asLevel)
|
protected int |
getCodeNum(java.lang.String code)
|
int |
getMaliciousTickdownTime(MOB mob,
Environmental target,
int tickAdjustmentFromStandard,
int asLevel)
|
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. |
Item |
getTarget(MOB mob,
Room location,
Environmental givenTarget,
Item container,
java.util.Vector commands,
int wornReqCode)
|
Item |
getTarget(MOB mob,
Room location,
Environmental givenTarget,
java.util.Vector commands,
int wornReqCode)
|
MOB |
getTarget(MOB mob,
java.util.Vector commands,
Environmental givenTarget)
|
MOB |
getTarget(MOB mob,
java.util.Vector commands,
Environmental givenTarget,
boolean quiet,
boolean alreadyAffOk)
|
int |
getTickDownRemaining()
|
long |
getTickStatus()
A coded status for this object during the period where its tick method is being called. |
protected int |
getX1Level(MOB mob)
|
protected int |
getX2Level(MOB mob)
|
protected int |
getX3Level(MOB mob)
|
protected int |
getX4Level(MOB mob)
|
protected int |
getX5Level(MOB mob)
|
protected int |
getXLEVELLevel(MOB mob)
|
protected int |
getXLOWCOSTLevel(MOB mob)
|
protected int |
getXMAXRANGELevel(MOB mob)
|
protected int |
getXPCOSTAdjustment(MOB mob,
int xpLoss)
|
protected int |
getXPCOSTLevel(MOB mob)
|
protected int |
getXTIMELevel(MOB mob)
|
void |
helpProficiency(MOB mob)
This method should, occassionally, add to the proficiency the given mob has in this skill. |
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
java.lang.String |
image()
Returns the fully qualified and determined name of the image file displayed for this object when MXP is used. |
protected int |
iniPracticesRequired()
|
protected int |
iniPracticesToPractice()
|
void |
initializeClass()
Called ONCE after all objects are loaded, but before the map is read in during initialization. |
protected int |
iniTrainsRequired()
|
boolean |
invoke(MOB mob,
Environmental target,
boolean auto,
int asLevel)
This method is called when a player or the system invokes this skill, casts this spell, etc. |
boolean |
invoke(MOB mob,
java.util.Vector commands,
Environmental target,
boolean auto,
int asLevel)
This method is called when a player or the system invokes this skill, casts this spell, etc. |
MOB |
invoker()
Always returns the mob that invoked or initiated the skill or effect. |
boolean |
isAutoInvoked()
An autoinvocating ability is an ability which affects the mob just by having learned the ability. |
boolean |
isGeneric()
Whether the fields of this item are set in code, or set by builders. |
boolean |
isNowAnAutoEffect()
An autoinvocating ability is an ability which affects the mob just by having learned the ability. |
boolean |
isStat(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. |
void |
makeLongLasting()
If this ability has been added as as temporary effect, like sleep, or trip, or other typical spells, calling this method will make it so thatit will not do so on its own for a long long time. |
void |
makeNonUninvokable()
Designates that this skill should never be uninvoked. |
boolean |
maliciousAffect(MOB mob,
Environmental target,
int asLevel,
int tickAdjustmentFromStandard,
int additionAffectCheckCode)
|
boolean |
maliciousFizzle(MOB mob,
Environmental target,
java.lang.String message)
|
int |
maxRange()
the maximum range of this object, if applicable. |
protected long |
minCastWaitTime()
|
int |
minRange()
the minimum range of this object, if applicable. |
java.lang.String |
miscTextFormat()
Unimplemented as of yet, but will hold a string telling the system what the proper format of any miscText data. |
java.lang.String |
name()
The displayable name 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. |
int |
numBehaviors()
The number of behaviors this object has. |
int |
numEffects()
Returns the number of ability objects listed as effects on this object. |
int |
numScripts()
Return the number of scripts running on this object |
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
protected int |
overrideMana()
|
protected static Item |
possibleContainer(MOB mob,
java.util.Vector commands,
boolean withStuff,
int wornReqCode)
|
void |
practice(MOB teacher,
MOB student)
Causes the student to practice this skill, presumably with the teacher mob. |
int |
practicesRequired(MOB mob)
Returns practices required to learn this skill |
int |
practicesToPractice(MOB mob)
|
boolean |
preInvoke(MOB mob,
java.util.Vector commands,
Environmental givenTarget,
boolean auto,
int asLevel,
int secondsElapsed,
double actionsRemaining)
This method is only called when the mob invoking this skill does not have enough actions to complete it immediately. |
int |
proficiency()
Returns a number from 0-100 representing the percent of proficiency the mob or player who has this instance in their Abilities list has in this skill. |
boolean |
proficiencyCheck(MOB mob,
int adjustment,
boolean auto)
Returns whether the given mob passes their proficiency check in this skill at this time. |
java.util.HashSet |
properTargets(MOB mob,
Environmental givenTarget,
boolean auto)
|
boolean |
putInCommandlist()
Returns whether this skills triggerStrings should be places in the master list of commands, unlike properties or other hidden skills. |
java.lang.String |
rawImage()
Returns the raw name of the image file to display for this object when MXP is used. |
void |
recoverEnvStats()
This method copies the baseEnvStats() object into the envStats() object, then makes repeated calls to all surrounding objects with affectEnvStats(Environmental,EnvStats) method. |
java.lang.String |
requirements()
Returns a string describing the requirements and qualifications that are required to learn this skill. |
boolean |
sameAs(Environmental E)
Whether this object instance is functionally identical to the object passed in. |
boolean |
savable()
Whether, if this object is in a room, whether it is appropriate to save this object to the database as a permanent feature of its container. |
void |
setAbilityCode(int newCode)
Sets an optional numeric value whose purpose is entirely contextual. |
void |
setAffectedOne(Environmental being)
Sets a reference to the room, item, mob, or exit that is currently being affected by this skill. |
void |
setBaseEnvStats(EnvStats newBaseEnvStats)
Re-sets the object containing a set of base, unmodified, mostly numeric fields. |
void |
setDescription(java.lang.String newDescription)
Sets the basic description of this object, as shown when the item is directly LOOKed at. |
void |
setDisplayText(java.lang.String newDisplayText)
Sets the raw string used to show what this object looks like in the room. |
void |
setExpirationDate(long time)
If this object expires, it should have a timestamp saying when it expires, in real time. |
void |
setImage(java.lang.String newImage)
Sets the raw name of the image file to display for this object when MXP is used. |
void |
setInvoker(MOB mob)
Sets or changes the mob that invoked or initated the skill or effect. |
void |
setMiscText(java.lang.String newMiscText)
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. |
void |
setName(java.lang.String newName)
Sets the raw unmodified name of this object as stored in the database. |
void |
setProficiency(int newProficiency)
Sets a number from 0-100 representing the percent of proficiency the mob or player who has this instance in their Abilities list has in this skill. |
void |
setSavable(boolean truefalse)
Returns whether this skill may be saved to the database, or whether it is strictly a run-time thing that should not be saved. |
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. |
void |
setTickDownRemaining(int newTick)
|
protected int |
somanticCastCode(MOB mob,
Environmental target,
boolean auto)
|
protected int |
somanticCastMask(MOB mob,
Environmental target,
boolean auto)
|
void |
spreadImmunity(MOB mob)
|
void |
startTickDown(MOB invokerMOB,
Environmental affected,
int tickTime)
Adds this Ability object as an effect on the given affected target, and sets it to unInvoke after the given number of ticks. |
void |
teach(MOB teacher,
MOB student)
Teaches this skill to the student mob, presumably from the teacher mob. |
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. |
int |
trainsRequired(MOB mob)
Returns trains required to learn this skill |
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. |
int[] |
usageCost(MOB mob,
boolean ignoreClassOverride)
Returns an integer array telling the system how much mana, movement, or hit points are required to invoke this skill. |
int |
usageType()
Returns a bitmap made up of constants defined by Ability.USAGE_*. |
protected int |
verbalCastCode(MOB mob,
Environmental target,
boolean auto)
|
protected int |
verbalCastMask(MOB mob,
Environmental target,
boolean auto)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String[] empty
protected short[] expertise
protected boolean isAnAutoEffect
protected int proficiency
protected boolean savable
public java.lang.String miscText
protected MOB invoker
protected Environmental affected
protected boolean canBeUninvoked
protected boolean unInvoked
protected int tickDown
protected long lastCastHelp
protected static final EnvStats envStats
protected boolean amDestroyed
| Constructor Detail |
|---|
public StdAbility()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectpublic java.lang.String Name()
Environmental
Name in interface EnvironmentalEnvironmental.name()public java.lang.String name()
Environmental
name in interface Environmentalname in interface TickableEnvironmental.Name()public java.lang.String description()
Environmental
description in interface Environmentalpublic java.lang.String displayText()
Environmental
displayText in interface Environmentalpublic java.lang.String image()
Environmental
image in interface Environmentalpublic java.lang.String rawImage()
Environmental
rawImage in interface Environmentalpublic void setImage(java.lang.String newImage)
Environmental
setImage in interface EnvironmentalnewImage - the raw name of the mxp image filepublic java.lang.String[] triggerStrings()
Ability
triggerStrings in interface AbilityAbility.putInCommandlist()public int maxRange()
Environmental
maxRange in interface Environmentalpublic int minRange()
Environmental
minRange in interface Environmental
public double castingTime(MOB mob,
java.util.Vector cmds)
Ability
castingTime in interface Abilitymob - the potential castercmds - the potential command set
Ability.combatCastingTime(MOB, Vector)
public double combatCastingTime(MOB mob,
java.util.Vector cmds)
Ability
combatCastingTime in interface Abilitymob - the potential castercmds - the potential command set
Ability.castingTime(MOB, Vector)public boolean putInCommandlist()
Ability
putInCommandlist in interface AbilityAbility.triggerStrings()public boolean isAutoInvoked()
Ability
isAutoInvoked in interface Abilitypublic boolean bubbleAffect()
Ability
bubbleAffect in interface AbilityItem.owner()protected int iniTrainsRequired()
protected int iniPracticesRequired()
public int trainsRequired(MOB mob)
Ability
trainsRequired in interface AbilityAbility.practicesRequired(MOB)public int practicesRequired(MOB mob)
Ability
practicesRequired in interface AbilityAbility.trainsRequired(MOB)public int practicesToPractice(MOB mob)
protected int iniPracticesToPractice()
public java.lang.String miscTextFormat()
Environmental
miscTextFormat in interface EnvironmentalCMParms,
Environmental.text(),
Environmental.setMiscText(String)public long flags()
Ability
flags in interface AbilityAbilitypublic int usageType()
Ability
usageType in interface AbilityAbilityprotected int overrideMana()
public int abstractQuality()
Ability
abstractQuality in interface AbilityAbilitypublic int enchantQuality()
Ability
enchantQuality in interface AbilityAbility.abstractQuality(),
Abilitypublic void initializeClass()
CMObject
initializeClass in interface CMObject
protected int castingQuality(MOB mob,
Environmental target,
int abstractQuality)
public int castingQuality(MOB mob,
Environmental target)
Ability
castingQuality in interface Abilitymob - the person to use the skilltarget - the potential target -- may be invoker
Ability,
Ability.abstractQuality()
protected int expertise(MOB mob,
int code)
protected int getX1Level(MOB mob)
protected int getX2Level(MOB mob)
protected int getX3Level(MOB mob)
protected int getX4Level(MOB mob)
protected int getX5Level(MOB mob)
protected int getXLEVELLevel(MOB mob)
protected int getXLOWCOSTLevel(MOB mob)
protected int getXMAXRANGELevel(MOB mob)
protected int getXTIMELevel(MOB mob)
protected int getXPCOSTLevel(MOB mob)
protected int getXPCOSTAdjustment(MOB mob,
int xpLoss)
public int adjustedMaxInvokerRange(int max)
protected int canAffectCode()
Abilityprotected int canTargetCode()
Abilityprotected void finalize()
finalize in class java.lang.Objectpublic CMObject newInstance()
CMObject
newInstance in interface CMObjectpublic int classificationCode()
Ability
classificationCode in interface AbilityAbilitypublic EnvStats envStats()
Environmental
envStats in interface EnvironmentalEnvironmental.baseEnvStats(),
Environmental.recoverEnvStats(),
EnvStatspublic EnvStats baseEnvStats()
Environmental
baseEnvStats in interface EnvironmentalEnvironmental.envStats(),
Environmental.recoverEnvStats(),
EnvStatspublic long expirationDate()
Environmental
expirationDate in interface EnvironmentalEnvironmental.setExpirationDate(long)public void setExpirationDate(long time)
Environmental
setExpirationDate in interface Environmentaltime - the time stamp when this thing expiresEnvironmental.expirationDate()public boolean isNowAnAutoEffect()
Ability
isNowAnAutoEffect in interface Abilitypublic boolean savable()
Environmental
savable in interface Environmentalpublic void setSavable(boolean truefalse)
Ability
setSavable in interface Abilitytruefalse - whether this skill may be saved to the databasepublic void destroy()
Environmental
destroy in interface Environmentalpublic boolean amDestroyed()
Environmental
amDestroyed in interface Environmentalpublic void setName(java.lang.String newName)
Environmental
setName in interface EnvironmentalnewName - the raw base name of this object on the map.Environmental.Name()public void recoverEnvStats()
Environmental
recoverEnvStats in interface EnvironmentalEnvironmental.baseEnvStats(),
Environmental.envStats(),
Environmental.addEffect(Ability),
Behavable.addBehavior(Behavior),
EnvStatspublic void setBaseEnvStats(EnvStats newBaseEnvStats)
Environmental
setBaseEnvStats in interface EnvironmentalnewBaseEnvStats - a set of state fieldsEnvironmental.envStats(),
Environmental.recoverEnvStats(),
EnvStatspublic void setDisplayText(java.lang.String newDisplayText)
Environmental
setDisplayText in interface EnvironmentalnewDisplayText - the string describing how this object looks in the roompublic void setDescription(java.lang.String newDescription)
Environmental
setDescription in interface EnvironmentalnewDescription - the basic detail description of this objectpublic int abilityCode()
Ability
abilityCode in interface Abilitypublic void setAbilityCode(int newCode)
Ability
setAbilityCode in interface AbilitynewCode - the optional numeric value or enhancementpublic java.util.Vector externalFiles()
Ability
externalFiles in interface Abilityprotected long minCastWaitTime()
public void setMiscText(java.lang.String newMiscText)
Environmental
setMiscText in interface EnvironmentalnewMiscText - either an open internal text string, or XMLpublic java.lang.String text()
Environmental
text in interface Environmentalpublic int proficiency()
Ability
proficiency in interface AbilityMOB.addAbility(Ability),
Ability.setProficiency(int)public void setProficiency(int newProficiency)
Ability
setProficiency in interface AbilitynewProficiency - the proficiency from 0-100MOB.addAbility(Ability),
Ability.proficiency()
protected int addedTickTime(MOB invokerMOB,
int baseTickTime)
public void startTickDown(MOB invokerMOB,
Environmental affected,
int tickTime)
Ability
startTickDown in interface AbilityinvokerMOB - the invoker of the abilityaffected - the object to be affected by this abilitytickTime - the number of ticks to keep the ability ticking.protected boolean disregardsArmorCheck(MOB mob)
public int adjustedLevel(MOB caster,
int asLevel)
Ability
adjustedLevel in interface Abilitycaster - the mob to evaluate the skill level ofasLevel - if greater than 0, this method always returns it
public int experienceLevels(MOB caster,
int asLevel)
public boolean canTarget(int can_code)
Ability
canTarget in interface Abilitycan_code - a bitmap of one or more Ability.CAN_* constants
canTargetCode()public boolean canAffect(int can_code)
Ability
canAffect in interface Abilitycan_code - a bitmap of one or more Ability.CAN_* constants
Ability,
canAffectCode()public boolean canAffect(Environmental E)
Ability
canAffect in interface AbilityE - the potential object to have this as a property/effect
canAffectCode()public boolean canTarget(Environmental E)
Ability
canTarget in interface AbilityE - the potential target of this skill
canTargetCode()
public MOB getTarget(MOB mob,
java.util.Vector commands,
Environmental givenTarget)
public MOB getTarget(MOB mob,
java.util.Vector commands,
Environmental givenTarget,
boolean quiet,
boolean alreadyAffOk)
public Environmental getAnyTarget(MOB mob,
java.util.Vector commands,
Environmental givenTarget,
int wornReqCode)
public Environmental getAnyTarget(MOB mob,
java.util.Vector commands,
Environmental givenTarget,
int wornReqCode,
boolean checkOthersInventory)
public Environmental getAnyTarget(MOB mob,
java.util.Vector commands,
Environmental givenTarget,
int wornReqCode,
boolean checkOthersInventory,
boolean alreadyAffOk)
protected static Item possibleContainer(MOB mob,
java.util.Vector commands,
boolean withStuff,
int wornReqCode)
public Item getTarget(MOB mob,
Room location,
Environmental givenTarget,
java.util.Vector commands,
int wornReqCode)
public Item getTarget(MOB mob,
Room location,
Environmental givenTarget,
Item container,
java.util.Vector commands,
int wornReqCode)
public int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>protected void cloneFix(Ability E)
public CMObject copyOf()
CMObject
copyOf in interface CMObject
public boolean proficiencyCheck(MOB mob,
int adjustment,
boolean auto)
Ability
proficiencyCheck in interface Abilitymob - the mob whose proficiency to checkadjustment - a positive or negative adjustment to the mobs base proficiencyauto - if true, this method returns true always
Ability.proficiency()public Environmental affecting()
Ability
affecting in interface AbilityAbility.setAffectedOne(Environmental)public void setAffectedOne(Environmental being)
Ability
setAffectedOne in interface Abilitybeing - the room, mob, or item being affectedAbility.affecting()public void unInvoke()
Ability
unInvoke in interface AbilityAbility.canBeUninvoked()public boolean canBeUninvoked()
Ability
canBeUninvoked in interface AbilityAbility.makeNonUninvokable()
public void affectEnvStats(Environmental affectedEnv,
EnvStats affectableStats)
StatsAffecting
affectEnvStats in interface StatsAffectingaffectedEnv - the host of the EnvStats object being affectedaffectableStats - the particular EnvStats object being affectedEnvStats,
Environmental,
Environmental.baseEnvStats(),
Environmental.envStats(),
Environmental.recoverEnvStats()
public void affectCharStats(MOB affectedMob,
CharStats affectableStats)
StatsAffecting
affectCharStats in interface StatsAffectingaffectedMob - the host of the CharStats object being affectedaffectableStats - the particular CharStats object being affectedCharStats,
MOB,
MOB.baseCharStats(),
MOB.charStats(),
MOB.recoverCharStats()
public void affectCharState(MOB affectedMob,
CharState affectableMaxState)
StatsAffecting
affectCharState in interface StatsAffectingaffectedMob - the host of the CharState object being affectedaffectableMaxState - the particular CharState object being affectedCharState,
MOB,
MOB.baseState(),
MOB.curState(),
MOB.recoverMaxState()public MOB invoker()
Ability
invoker in interface AbilityMOB,
Ability.setInvoker(MOB)public void setInvoker(MOB mob)
Ability
setInvoker in interface Abilitymob - the invoker mobMOB,
Ability.invoker()
protected int[] buildCostArray(MOB mob,
int consumed,
int minimum)
public int[] usageCost(MOB mob,
boolean ignoreClassOverride)
Ability
usageCost in interface Abilitymob - the invoker of the skillignoreClassOverride - whether to ignore Class Overrides
Ability.usageType(),
Abilitypublic void helpProficiency(MOB mob)
Ability
helpProficiency in interface Abilitymob - the mob whose proficiency in this skill to possibly advanceAbility.proficiency()
public boolean preInvoke(MOB mob,
java.util.Vector commands,
Environmental givenTarget,
boolean auto,
int asLevel,
int secondsElapsed,
double actionsRemaining)
Ability
preInvoke in interface Abilitymob - 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.secondsElapsed - 0 at first, and increments every secondactionsRemaining - number of free actions the player is defficient.
Ability.invoke(MOB, Vector, Environmental, boolean, int)
public boolean invoke(MOB mob,
Environmental target,
boolean auto,
int asLevel)
Ability
invoke in interface Abilitymob - the player or mob invoking the skilltarget - 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.
Ability.invoke(MOB, Vector, Environmental, boolean, int)
public boolean invoke(MOB mob,
java.util.Vector commands,
Environmental target,
boolean auto,
int asLevel)
Ability
invoke in interface Abilitymob - the player or mob invoking the skillcommands - the parameters entered for the skill (minus trigger word)target - 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.
public boolean checkComponents(MOB mob)
public java.util.HashSet properTargets(MOB mob,
Environmental givenTarget,
boolean auto)
public int getMaliciousTickdownTime(MOB mob,
Environmental target,
int tickAdjustmentFromStandard,
int asLevel)
public boolean maliciousAffect(MOB mob,
Environmental target,
int asLevel,
int tickAdjustmentFromStandard,
int additionAffectCheckCode)
public boolean beneficialWordsFizzle(MOB mob,
Environmental target,
java.lang.String message)
public boolean beneficialVisualFizzle(MOB mob,
Environmental target,
java.lang.String message)
public boolean maliciousFizzle(MOB mob,
Environmental target,
java.lang.String message)
public int getBeneficialTickdownTime(MOB mob,
Environmental target,
int tickAdjustmentFromStandard,
int asLevel)
public boolean beneficialAffect(MOB mob,
Environmental target,
int asLevel,
int tickAdjustmentFromStandard)
public void spreadImmunity(MOB mob)
public boolean autoInvocation(MOB mob)
Ability
autoInvocation in interface Abilitymob - the player or npc mob who has this ability
Ability.isAutoInvoked(),
Ability.isNowAnAutoEffect()public void makeNonUninvokable()
Ability
makeNonUninvokable in interface AbilityEnvironmental.addNonUninvokableEffect(Ability),
Ability.canBeUninvoked()public java.lang.String accountForYourself()
Ability
accountForYourself in interface Abilitypublic int getTickDownRemaining()
public void setTickDownRemaining(int newTick)
public long getTickStatus()
Tickable
getTickStatus in interface TickableTickable.tick(Tickable, int)
public boolean canBeTaughtBy(MOB teacher,
MOB student)
Ability
canBeTaughtBy in interface Abilityteacher - the potential teacher of this skillstudent - the potential learner of this skill
Ability.canBeLearnedBy(MOB, MOB),
Ability.teach(MOB, MOB)
protected boolean ableOk(MOB mob,
MOB target,
CMMsg msg)
protected void ableSend(MOB mob,
MOB target,
CMMsg msg)
public java.lang.String requirements()
Ability
requirements in interface Ability
public boolean canBeLearnedBy(MOB teacher,
MOB student)
Ability
canBeLearnedBy in interface Abilityteacher - the potential teacher of this skillstudent - the potential learner of this skill
Ability.canBeTaughtBy(MOB, MOB),
Ability.teach(MOB, MOB)
protected int verbalCastCode(MOB mob,
Environmental target,
boolean auto)
protected int verbalCastMask(MOB mob,
Environmental target,
boolean auto)
protected int somanticCastCode(MOB mob,
Environmental target,
boolean auto)
protected int somanticCastMask(MOB mob,
Environmental target,
boolean auto)
public boolean canBePracticedBy(MOB teacher,
MOB student)
Ability
canBePracticedBy in interface Abilityteacher - the potential practice teacher of this skillstudent - the potential practicer of this skil
Ability.practice(MOB, MOB)
public void teach(MOB teacher,
MOB student)
Ability
teach in interface Abilityteacher - the teacher of this skillstudent - the learner of this skillAbility.canBeTaughtBy(MOB, MOB),
Ability.canBeLearnedBy(MOB, MOB)
public void practice(MOB teacher,
MOB student)
Ability
practice in interface Abilityteacher - the teacher of this skillstudent - the practicer of this skillAbility.canBePracticedBy(MOB, MOB)public void makeLongLasting()
Ability
makeLongLasting in interface Ability
public void executeMsg(Environmental myHost,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsg
public boolean okMessage(Environmental myHost,
CMMsg msg)
MsgListener
okMessage in interface MsgListenermyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executed
CMMsg,
CMMsg.source()
public boolean tick(Tickable ticking,
int tickID)
Tickable
tick in interface Tickableticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in Tickable
Tickable,
ServiceEngine,
TickableGrouppublic boolean appropriateToMyFactions(MOB mob)
Ability
appropriateToMyFactions in interface Abilitymob - the mob whose factions to check
Prayer,
Factionpublic void addEffect(Ability to)
Environmental
addEffect in interface Environmentalto - The ability object to add as an effect.Ability,
Environmental.recoverEnvStats()public void addNonUninvokableEffect(Ability to)
Environmental
addNonUninvokableEffect in interface Environmentalto - The ability object to add as an effect.Ability,
Environmental.recoverEnvStats()public void delEffect(Ability to)
Environmental
delEffect in interface Environmentalto - The ability object to remove as an effect on this objectAbility,
Environmental.recoverEnvStats()public int numEffects()
Environmental
numEffects in interface EnvironmentalAbilitypublic Ability fetchEffect(int index)
Environmental
fetchEffect in interface Environmentalindex - which object to return
Ability,
Environmental.numEffects()public Ability fetchEffect(java.lang.String ID)
Environmental
fetchEffect in interface EnvironmentalAbility,
CMObject.ID()public void addBehavior(Behavior to)
Behavable
addBehavior in interface Behavableto - The behavior object to add.Behavior,
Environmental.recoverEnvStats()public void delBehavior(Behavior to)
Behavable
delBehavior in interface Behavableto - The behavior object to remove.Behavior,
Environmental.recoverEnvStats()public int numBehaviors()
Behavable
numBehaviors in interface BehavableBehaviorpublic Behavior fetchBehavior(int index)
Behavable
fetchBehavior in interface Behavableindex - which object to return
Behavior,
Behavable.numBehaviors()public Behavior fetchBehavior(java.lang.String ID)
Behavable
fetchBehavior in interface BehavableBehavior,
CMObject.ID()public void addScript(ScriptingEngine S)
Behavable
addScript in interface BehavableS - the scripting engine, fully populated, to addScriptingEnginepublic void delScript(ScriptingEngine S)
Behavable
delScript in interface BehavableS - the specific scripting engine to removeScriptingEnginepublic int numScripts()
Behavable
numScripts in interface Behavablepublic ScriptingEngine fetchScript(int x)
Behavable
fetchScript in interface Behavablex - which script to return
ScriptingEnginepublic boolean isGeneric()
Environmental
isGeneric in interface EnvironmentalEnvironmental.text()public int getSaveStatIndex()
CMModifiable
getSaveStatIndex in interface CMModifiableCMModifiable.getStatCodes(),
CMModifiable.getStat(String),
CMModifiable.setStat(String, String)public java.lang.String[] getStatCodes()
CMModifiable
getStatCodes in interface CMModifiableCMModifiable.getStat(String),
CMModifiable.setStat(String, String)public boolean isStat(java.lang.String code)
CMModifiable
isStat in interface CMModifiablecode - the name of the field to read.
CMModifiable.getStatCodes()protected int getCodeNum(java.lang.String code)
public java.lang.String getStat(java.lang.String code)
CMModifiable
getStat in interface CMModifiablecode - the name of the field to read.
CMModifiable.getStatCodes()
public void setStat(java.lang.String code,
java.lang.String val)
CMModifiable
setStat in interface CMModifiablecode - the name of the field to setval - the value to set the field toCMModifiable.getStatCodes()public boolean sameAs(Environmental E)
Environmental
sameAs in interface EnvironmentalE - the object to compare this one to
CMModifiable.getStatCodes(),
CMModifiable.getStat(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||