|
|||||||||
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.PlanarAbility
public class PlanarAbility
Nested Class Summary | |
---|---|
static class |
PlanarAbility.PlanarSpecFlag
|
static class |
PlanarAbility.PlanarVar
|
Field Summary | |
---|---|
protected boolean |
alwaysRandomArea
|
protected java.util.List<Pair<java.lang.String,java.lang.String>> |
behavList
|
protected int |
bonusDmgStat
|
protected Pair<Pair<java.lang.Integer,java.lang.Integer>,java.util.List<Pair<java.lang.String,java.lang.String>>> |
enableList
|
protected int |
fatigueRate
|
protected long |
lastCasting
|
protected java.lang.ref.WeakReference<Room> |
oldRoom
|
protected int |
planarLevel
|
protected java.lang.String |
planarPrefix
|
protected Area |
planeArea
|
protected static java.util.concurrent.atomic.AtomicInteger |
planeIDNum
|
protected java.util.Map<java.lang.String,java.lang.String> |
planeVars
|
protected int |
recoverRate
|
protected int |
recoverTick
|
protected java.util.List<Pair<java.lang.String,java.lang.String>> |
reffectList
|
protected java.util.Set<java.lang.String> |
reqWeapons
|
protected WeakArrayList<Room> |
roomsDone
|
protected java.util.Set<PlanarAbility.PlanarSpecFlag> |
specFlags
|
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 | |
---|---|
PlanarAbility()
|
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 |
affectCharStats(MOB affected,
CharStats affectableStats)
This method is called by the recoverCharStats() method on other MOB objects. |
void |
affectPhyStats(Physical affected,
PhyStats affectableStats)
This method is called by the recoverPhyStats() method on other Environmental objects. |
protected int |
canTargetCode()
Designates whether, when invoked as a skill, what sort of objects this ability can effectively target. |
protected java.lang.String |
castingMessage(MOB mob,
boolean auto)
|
void |
clearVars()
|
protected java.lang.String |
convertToMyArea(java.lang.String Name,
java.lang.String roomID)
|
protected void |
destroyPlane()
|
protected void |
destroyPlane(Area planeA)
|
protected void |
doneRoom(Room R)
|
protected java.lang.String |
failMessage(MOB mob,
boolean auto)
|
void |
fixRoom(Room room)
|
long |
flags()
Returns a bitmap giving some specific information about the scope and purpose of the skill. |
protected static java.util.List<java.lang.String> |
getAllPlaneKeys()
|
protected PlanarAbility |
getPlanarAbility(Physical P)
|
protected static java.util.Map<java.lang.String,java.lang.String> |
getPlane(java.lang.String name)
|
static java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> |
getPlaneMap()
|
protected java.lang.String |
getStrippedRoomID(java.lang.String roomID)
|
protected static java.util.List<java.lang.String> |
getTransitionPlaneKeys()
|
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. |
protected static java.lang.String |
listOfPlanes()
|
java.lang.String |
name()
The nice displayable name of this instance of this object |
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
protected int |
overrideMana()
amount of mana/move used by this ability, overriding ini file -1=normal, Ability.COST_ALL=all, Ability.COST_PCT |
protected void |
reEffect(Physical M,
java.lang.String ID,
java.lang.String parms)
|
protected boolean |
roomDone(Room R)
|
void |
setAffectedOne(Physical P)
Sets a reference to the room, item, mob, or exit that is currently being affected by this skill. |
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. |
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected volatile long lastCasting
protected java.lang.ref.WeakReference<Room> oldRoom
protected Area planeArea
protected java.util.Map<java.lang.String,java.lang.String> planeVars
protected WeakArrayList<Room> roomsDone
protected int planarLevel
protected java.lang.String planarPrefix
protected java.util.List<Pair<java.lang.String,java.lang.String>> behavList
protected java.util.List<Pair<java.lang.String,java.lang.String>> reffectList
protected int bonusDmgStat
protected java.util.Set<java.lang.String> reqWeapons
protected int recoverRate
protected int fatigueRate
protected volatile int recoverTick
protected java.util.Set<PlanarAbility.PlanarSpecFlag> specFlags
protected Pair<Pair<java.lang.Integer,java.lang.Integer>,java.util.List<Pair<java.lang.String,java.lang.String>>> enableList
protected static final java.util.concurrent.atomic.AtomicInteger planeIDNum
protected boolean alwaysRandomArea
Constructor Detail |
---|
public PlanarAbility()
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()
protected int canTargetCode()
StdAbility
canTargetCode
in class StdAbility
Ability
public long flags()
Ability
flags
in interface Ability
flags
in class StdAbility
Ability
protected int overrideMana()
StdAbility
overrideMana
in class StdAbility
public int abstractQuality()
Ability
abstractQuality
in interface Ability
abstractQuality
in class StdAbility
Ability
public void clearVars()
public void setMiscText(java.lang.String newText)
Environmental
setMiscText
in interface Environmental
setMiscText
in class StdAbility
newText
- either an open internal text string, or XMLprotected void reEffect(Physical M, java.lang.String ID, java.lang.String parms)
public void fixRoom(Room room)
public void affectCharStats(MOB affected, CharStats affectableStats)
StatsAffecting
affectCharStats
in interface StatsAffecting
affectCharStats
in class StdAbility
affected
- the host of the CharStats object being affectedaffectableStats
- the particular CharStats object being affectedCharStats
,
MOB
,
MOB.baseCharStats()
,
MOB.charStats()
,
MOB.recoverCharStats()
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()
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
protected boolean roomDone(Room R)
protected void doneRoom(Room R)
public boolean okMessage(Environmental myHost, CMMsg msg)
MsgListener
okMessage
in interface MsgListener
okMessage
in class StdAbility
myHost
- either the initiator of the event, or the host of this objectmsg
- the CMMsg that wants to be executed
CMMsg
,
CMMsg.source()
protected static java.util.List<java.lang.String> getAllPlaneKeys()
protected static java.util.List<java.lang.String> getTransitionPlaneKeys()
protected static java.lang.String listOfPlanes()
public static java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> getPlaneMap()
protected static java.util.Map<java.lang.String,java.lang.String> getPlane(java.lang.String name)
protected void destroyPlane(Area planeA)
protected void destroyPlane()
protected java.lang.String getStrippedRoomID(java.lang.String roomID)
protected java.lang.String convertToMyArea(java.lang.String Name, java.lang.String roomID)
public void setAffectedOne(Physical P)
Ability
setAffectedOne
in interface Ability
setAffectedOne
in class StdAbility
P
- the room, mob, or item being affectedAbility.affecting()
protected PlanarAbility getPlanarAbility(Physical P)
protected java.lang.String castingMessage(MOB mob, boolean auto)
protected java.lang.String failMessage(MOB mob, boolean auto)
public void unInvoke()
Ability
unInvoke
in interface Ability
unInvoke
in class StdAbility
Ability.canBeUninvoked()
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 |