|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.Abilities.Properties.Property
com.planet_ink.coffee_mud.Abilities.Properties.Prop_SpellAdder
public class Prop_SpellAdder
| Field Summary | |
|---|---|
protected java.util.Vector |
compiledMask
|
protected MOB |
invokerMOB
|
protected Environmental |
lastMOB
|
protected int |
level
|
protected boolean |
processing
|
protected java.util.Vector |
spellV
|
protected boolean |
uninvocable
|
protected java.util.Vector |
unrevocableSpells
|
| Fields inherited from class com.planet_ink.coffee_mud.Abilities.Properties.Property |
|---|
affected, amDestroyed, empty, envStats, miscText, savable |
| Constructor Summary | |
|---|---|
Prop_SpellAdder()
|
|
| Method Summary | |
|---|---|
java.lang.String |
accountForYourself()
For use by the identify spell, this should return a nice description of any properties incorporated by this effect. |
boolean |
addMeIfNeccessary(Environmental source,
Environmental target,
boolean makeLongLasting,
int asLevel)
|
void |
affectEnvStats(Environmental host,
EnvStats affectableStats)
This method is called by the recoverEnvStats() method on other Environmental objects. |
protected int |
canAffectCode()
Designates whether, when used as a property/effect, what sort of objects this ability can affect. |
java.util.Vector |
convertToV2(java.util.Vector spellsV,
Environmental target)
|
boolean |
didHappen(int defaultPct)
|
void |
executeMsg(Environmental host,
CMMsg msg)
The general message event handler for the object. |
MOB |
getBestInvokerMOB(Environmental target)
|
MOB |
getInvokerMOB(Environmental source,
Environmental target)
|
java.lang.String |
getMaskString(java.lang.String newText)
|
java.util.Vector |
getMySpellsV()
|
java.lang.String |
getParmString(java.lang.String newText)
|
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.Hashtable |
makeMySpellsH(java.util.Vector V)
|
java.lang.String |
name()
The displayable name of this object. |
void |
removeMyAffectsFrom(Environmental E)
|
void |
removeMyAffectsFromLastMOB()
|
void |
setMiscText(java.lang.String newText)
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 |
spellAccountingsWithMask(java.lang.String pre,
java.lang.String post)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Environmental lastMOB
protected MOB invokerMOB
protected boolean processing
protected boolean uninvocable
protected int level
protected java.util.Vector spellV
protected java.util.Vector compiledMask
protected java.util.Vector unrevocableSpells
| Constructor Detail |
|---|
public Prop_SpellAdder()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class Propertypublic java.lang.String name()
Environmental
name in interface Environmentalname in interface Tickablename in class PropertyEnvironmental.Name()protected int canAffectCode()
Property
canAffectCode in class PropertyAbilitypublic java.lang.String getMaskString(java.lang.String newText)
public java.lang.String getParmString(java.lang.String newText)
public void setMiscText(java.lang.String newText)
Environmental
setMiscText in interface EnvironmentalsetMiscText in class PropertynewText - either an open internal text string, or XMLpublic java.util.Vector getMySpellsV()
public boolean didHappen(int defaultPct)
public java.util.Hashtable makeMySpellsH(java.util.Vector V)
public MOB getBestInvokerMOB(Environmental target)
public MOB getInvokerMOB(Environmental source,
Environmental target)
public java.util.Vector convertToV2(java.util.Vector spellsV,
Environmental target)
public boolean addMeIfNeccessary(Environmental source,
Environmental target,
boolean makeLongLasting,
int asLevel)
public boolean invoke(MOB mob,
java.util.Vector commands,
Environmental givenTarget,
boolean auto,
int asLevel)
Ability
invoke in interface Abilityinvoke in class Propertymob - 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.
public java.lang.String accountForYourself()
Ability
accountForYourself in interface AbilityaccountForYourself in class Propertypublic void removeMyAffectsFromLastMOB()
public void removeMyAffectsFrom(Environmental E)
public void executeMsg(Environmental host,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenerexecuteMsg in class Propertyhost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsg
public void affectEnvStats(Environmental host,
EnvStats affectableStats)
StatsAffecting
affectEnvStats in interface StatsAffectingaffectEnvStats in class Propertyhost - the host of the EnvStats object being affectedaffectableStats - the particular EnvStats object being affectedEnvStats,
Environmental,
Environmental.baseEnvStats(),
Environmental.envStats(),
Environmental.recoverEnvStats()
public java.lang.String spellAccountingsWithMask(java.lang.String pre,
java.lang.String post)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||