|
|||||||||
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.Spells.Spell
com.planet_ink.coffee_mud.Abilities.Spells.Spell_InvisibilitySphere
public class Spell_InvisibilitySphere
Field Summary | |
---|---|
protected java.lang.ref.WeakReference<Room> |
lastRoom
|
protected long |
lastRoomHash
|
Fields inherited from class com.planet_ink.coffee_mud.Abilities.Spells.Spell |
---|
CHAIN_LENGTH |
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 | |
---|---|
Spell_InvisibilitySphere()
|
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. |
protected void |
addToSphere(Physical affected)
|
void |
affectPhyStats(Physical affected,
PhyStats affectableStats)
This method is called by the recoverPhyStats() method on other Environmental objects. |
protected int |
canAffectCode()
Designates whether, when used as a property/effect, what sort of objects this ability can affect. |
int |
castingQuality(MOB mob,
Physical 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. |
int |
classificationCode()
Returns a bitmap describing the general classification of the skill (spell, skill, chant, or property, etc) and its domain. |
java.lang.String |
displayText()
Gets the raw string used to show what this object looks like in the room. |
void |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
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 |
protected void |
removeFromSphere(Physical affected)
|
boolean |
tick(Tickable ticking,
int tickID)
this is the method which is called periodically by the threading engine. |
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.Spells.Spell |
---|
canTargetCode, maliciousAffect, spellArmorCheck, triggerStrings |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected volatile java.lang.ref.WeakReference<Room> lastRoom
protected volatile long lastRoomHash
Constructor Detail |
---|
public Spell_InvisibilitySphere()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class Spell
public java.lang.String name()
Tickable
name
in interface CMObject
name
in interface Tickable
name
in class Spell
Environmental.Name()
public java.lang.String displayText()
Environmental
displayText
in interface Environmental
displayText
in class Spell
public int classificationCode()
Ability
classificationCode
in interface Ability
classificationCode
in class Spell
Ability
protected int canAffectCode()
StdAbility
canAffectCode
in class Spell
Ability
public int abstractQuality()
Ability
abstractQuality
in interface Ability
abstractQuality
in class Spell
Ability
public void unInvoke()
Ability
unInvoke
in interface Ability
unInvoke
in class StdAbility
Ability.canBeUninvoked()
public void affectPhyStats(Physical affected, PhyStats affectableStats)
StatsAffecting
affectPhyStats
in interface StatsAffecting
affectPhyStats
in class StdAbility
affected
- the host of the PhyStats object being affectedaffectableStats
- the particular PhyStats object being affectedPhyStats
,
Environmental
,
Affectable.basePhyStats()
,
Affectable.phyStats()
,
Affectable.recoverPhyStats()
protected void removeFromSphere(Physical affected)
protected void addToSphere(Physical affected)
public int castingQuality(MOB mob, Physical target)
Ability
castingQuality
in interface Ability
castingQuality
in class StdAbility
mob
- the person to use the skilltarget
- the potential target -- may be invoker
Ability
,
Ability.abstractQuality()
public void executeMsg(Environmental myHost, CMMsg msg)
MsgListener
executeMsg
in interface MsgListener
executeMsg
in class StdAbility
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that needs to be executedCMMsg
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 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 Spell
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 |