|
|||||||||
| 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.Thief.ThiefSkill
com.planet_ink.coffee_mud.Abilities.Thief.Thief_Caltrops
public class Thief_Caltrops
| Field Summary |
|---|
| Fields inherited from class com.planet_ink.coffee_mud.Abilities.StdAbility |
|---|
affected, amDestroyed, canBeUninvoked, empty, envStats, expertise, invoker, isAnAutoEffect, lastCastHelp, miscText, proficiency, savable, tickDown, unInvoked |
| Fields inherited from interface com.planet_ink.coffee_mud.Abilities.interfaces.Trap |
|---|
TRAP_GAS, TRAP_NEEDLE, TRAP_PIT_BLADE, TRAP_SPELL |
| Constructor Summary | |
|---|---|
Thief_Caltrops()
|
|
| 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 |
activateBomb()
When called, this will cause the bomb to begin its countdown to going off, which can differ from bomb-to-bomb. |
java.lang.String |
caltropTypeName()
|
protected int |
canAffectCode()
Designates whether, when used as a property/effect, what sort of objects this ability can affect. |
boolean |
canSetTrapOn(MOB mob,
Environmental E)
Returns whether the given trapper is currently in a position to set this trap on the specified object. |
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. |
int |
classificationCode()
Returns a bitmap describing the general classification of the skill (spell, skill, chant, or property, etc) and its domain. |
void |
disable()
Causes the trap to become disabled and inert. |
boolean |
disabled()
Whether this trap has been disabled, as by a thief |
int |
getReset()
Return the number of ticks after a trap has been sprung before it will automatically reset itself for another victim. |
java.util.Vector |
getTrapComponents()
Returns a sample set of the components used to make this trap. |
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. |
boolean |
isABomb()
Returns whether this trap is a bomb, with delayed effect. |
boolean |
maySetTrap(MOB mob,
int asLevel)
Returns whether the given mob, at the given level, is allowed to set this trap. |
java.lang.String |
name()
The displayable name of this object. |
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
java.lang.String |
requiresToSet()
A simple display string describing the conditions necesssary to get the canSetTrapOn method to return true. |
void |
setReset(int Reset)
Sets the number of ticks to wait after a trap has been sprung, before it will automatically reset for another victim. |
Trap |
setTrap(MOB mob,
Environmental E,
int trapBonus,
int qualifyingClassLevel,
boolean perm)
Completed the task of setting a trap on a given object. |
void |
spring(MOB mob)
This method causes this trap to take affect against the given target. |
boolean |
sprung()
Returns whether this trap has already been sprung (and is not yet reset) |
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. |
int |
usageType()
Returns a bitmap made up of constants defined by Ability.USAGE_*. |
| Methods inherited from class com.planet_ink.coffee_mud.Abilities.Thief.ThiefSkill |
|---|
enchantQuality, getHighestLevelMOB, getMOBLevel |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, 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, canBeUninvoked, canTarget, canTarget, castingTime, combatCastingTime, enchantQuality, externalFiles, flags, helpProficiency, invoke, invoker, isAutoInvoked, isNowAnAutoEffect, makeLongLasting, makeNonUninvokable, practice, practicesRequired, preInvoke, proficiency, proficiencyCheck, putInCommandlist, requirements, setAbilityCode, setAffectedOne, setInvoker, setProficiency, setSavable, startTickDown, teach, trainsRequired, unInvoke, usageCost |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
|---|
addEffect, addNonUninvokableEffect, amDestroyed, baseEnvStats, delEffect, description, destroy, displayText, envStats, expirationDate, fetchEffect, fetchEffect, image, isGeneric, maxRange, minRange, miscTextFormat, Name, numEffects, rawImage, recoverEnvStats, sameAs, savable, setBaseEnvStats, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, tick |
| 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.StatsAffecting |
|---|
affectCharState, affectCharStats, affectEnvStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
|---|
executeMsg |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMModifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Behavable |
|---|
addBehavior, addScript, delBehavior, delScript, fetchBehavior, fetchBehavior, fetchScript, numBehaviors, numScripts |
| Constructor Detail |
|---|
public Thief_Caltrops()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class ThiefSkillpublic java.lang.String name()
Environmental
name in interface Environmentalname in interface Tickablename in class ThiefSkillEnvironmental.Name()protected int canAffectCode()
StdAbility
canAffectCode in class ThiefSkillAbilityprotected int canTargetCode()
StdAbility
canTargetCode in class ThiefSkillAbilitypublic int classificationCode()
Ability
classificationCode in interface AbilityclassificationCode in class ThiefSkillAbilitypublic int abstractQuality()
Ability
abstractQuality in interface AbilityabstractQuality in class ThiefSkillAbilitypublic java.lang.String[] triggerStrings()
Ability
triggerStrings in interface AbilitytriggerStrings in class StdAbilityAbility.putInCommandlist()public int usageType()
Ability
usageType in interface AbilityusageType in class StdAbilityAbilitypublic java.lang.String caltropTypeName()
public boolean isABomb()
Trap
isABomb in interface Trappublic void activateBomb()
Trap
activateBomb in interface Trappublic boolean disabled()
Trap
disabled in interface TrapTrap.disable()public void disable()
Trap
disable in interface TrapTrap.disabled()public void setReset(int Reset)
Trap
setReset in interface TrapReset - the number of ticks between usesTrap.getReset()public int getReset()
Trap
getReset in interface TrapTrap.setReset(int)
public boolean maySetTrap(MOB mob,
int asLevel)
Trap
maySetTrap in interface Trapmob - the trap setter to checkasLevel - the level of the trapper, compared to this traps internal level
Trap.canSetTrapOn(MOB, Environmental),
Trap.setTrap(MOB, Environmental, int, int, boolean)
public boolean canSetTrapOn(MOB mob,
Environmental E)
Trap
canSetTrapOn in interface Trapmob - the trapperE - the object this trap will be set upon
Trap.maySetTrap(MOB, int),
Trap.setTrap(MOB, Environmental, int, int, boolean)public java.util.Vector getTrapComponents()
Trap
getTrapComponents in interface Trappublic java.lang.String requiresToSet()
Trap
requiresToSet in interface TrapTrap.canSetTrapOn(MOB, Environmental)
public Trap setTrap(MOB mob,
Environmental E,
int trapBonus,
int qualifyingClassLevel,
boolean perm)
Trap
setTrap in interface Trapmob - the trapperE - the object to set the trap ontrapBonus - any bonus to the traps effectiveness (0 is normal)qualifyingClassLevel - the class-level at which the trapper qualified for this trap
public boolean sprung()
Trap
sprung in interface TrapTrap.spring(MOB)public void spring(MOB mob)
Trap
spring in interface Trapmob - the target of the effectTrap.sprung()
public int castingQuality(MOB mob,
Environmental target)
Ability
castingQuality in interface AbilitycastingQuality in class StdAbilitymob - the person to use the skilltarget - the potential target -- may be invoker
Ability,
Ability.abstractQuality()
public boolean okMessage(Environmental myHost,
CMMsg msg)
MsgListener
okMessage in interface MsgListenerokMessage in class StdAbilitymyHost - 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.Vector commands,
Environmental givenTarget,
boolean auto,
int asLevel)
Ability
invoke in interface Ability