|
|||||||||
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.Traps.Trap_Trap
public class Trap_Trap
Field Summary | |
---|---|
protected static MOB |
benefactor
|
protected Room |
myPit
|
protected Room |
myPitUp
|
protected int |
reset
|
protected boolean |
sprung
|
Fields inherited from class com.planet_ink.coffee_mud.Abilities.StdAbility |
---|
affected, amDestroyed, canBeUninvoked, empty, 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 | |
---|---|
Trap_Trap()
|
Method Summary | |
---|---|
void |
activateBomb()
When called, this will cause the bomb to begin its countdown to going off, which can differ from bomb-to-bomb. |
void |
blade(MOB mob)
|
protected int |
canAffectCode()
Designates whether, when used as a property/effect, what sort of objects this ability can affect. |
boolean |
canReSetTrap(MOB mob)
Returns whether the given mob, at the given level, is allowed to re-set this trap. |
boolean |
canSetTrapOn(MOB mob,
Physical P)
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 |
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 |
void |
fallInPit(MOB mob)
|
void |
gas(MOB mob)
|
int |
getReset()
Return the number of ticks after a trap has been sprung before it will automatically reset itself for another victim. |
java.util.List<Item> |
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. |
MOB |
invoker()
Always returns the mob that invoked or initiated the skill or effect. |
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 nice displayable name of this instance of this object |
void |
needle(MOB mob)
|
java.lang.String |
requiresToSet()
A simple display string describing the conditions necesssary to get the canSetTrapOn method to return true. |
void |
resetTrap(MOB mob)
Causes the trap to become reset and unsprung. |
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,
Physical P,
int trapBonus,
int qualifyingClassLevel,
boolean perm)
Completed the task of setting a trap on a given object. |
void |
spring(MOB target)
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) |
boolean |
tick(Tickable ticking,
int tickID)
this is the method which is called periodically by the threading engine. |
protected int |
trapType()
|
void |
unInvoke()
If this skill is uninvokable, this method will uninvoke it, remove it as an effect on the target, and shut it down. |
void |
victimOfSpell(MOB mob)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.planet_ink.coffee_mud.Abilities.interfaces.Ability |
---|
abilityCode, abstractQuality, accountForYourself, adjustedLevel, affecting, appropriateToMyFactions, autoInvocation, bubbleAffect, canAffect, canAffect, canBeLearnedBy, canBePracticedBy, canBeTaughtBy, canBeUninvoked, canTarget, canTarget, castingQuality, castingTime, checkedCastingCost, combatCastingTime, enchantQuality, externalFiles, flags, getTrainingCost, helpProficiency, invoke, invoke, isAutoInvoked, isNowAnAutoEffect, makeLongLasting, makeNonUninvokable, practice, preInvoke, proficiency, proficiencyCheck, putInCommandlist, requirements, setAbilityCode, setAffectedOne, setInvoker, setProficiency, startTickDown, teach, triggerStrings, usageCost, usageType |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Environmental |
---|
description, displayText, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
---|
getTickStatus |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
---|
affectCharState, affectCharStats, affectPhyStats |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.MsgListener |
---|
executeMsg, okMessage |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
---|
amDestroyed, destroy, isSavable, setSavable |
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.Modifiable |
---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
Field Detail |
---|
protected static MOB benefactor
protected boolean sprung
protected Room myPit
protected Room myPitUp
protected int reset
Constructor Detail |
---|
public Trap_Trap()
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 canAffectCode()
StdAbility
canAffectCode
in class StdAbility
Ability
protected int canTargetCode()
StdAbility
canTargetCode
in class StdAbility
Ability
protected int trapType()
public void activateBomb()
Trap
activateBomb
in interface Trap
public boolean isABomb()
Trap
isABomb
in interface Trap
public boolean sprung()
Trap
sprung
in interface Trap
Trap.spring(MOB)
public boolean disabled()
Trap
disabled
in interface Trap
Trap.disable()
public void disable()
Trap
disable
in interface Trap
Trap.disabled()
public void setReset(int Reset)
Trap
setReset
in interface Trap
Reset
- the number of ticks between usesTrap.getReset()
public int getReset()
Trap
getReset
in interface Trap
Trap.setReset(int)
public boolean maySetTrap(MOB mob, int asLevel)
Trap
maySetTrap
in interface Trap
mob
- the trap setter to checkasLevel
- the level of the trapper, compared to this traps internal level
Trap.canSetTrapOn(MOB, Physical)
,
Trap.setTrap(MOB, Physical, int, int, boolean)
public boolean canSetTrapOn(MOB mob, Physical P)
Trap
canSetTrapOn
in interface Trap
mob
- the trapperP
- the object this trap will be set upon
Trap.maySetTrap(MOB, int)
,
Trap.setTrap(MOB, Physical, int, int, boolean)
public boolean canReSetTrap(MOB mob)
Trap
canReSetTrap
in interface Trap
mob
- the trap setter to check
Trap.canSetTrapOn(MOB, Physical)
,
Trap.resetTrap(MOB)
public java.util.List<Item> getTrapComponents()
Trap
getTrapComponents
in interface Trap
public java.lang.String requiresToSet()
Trap
requiresToSet
in interface Trap
Trap.canSetTrapOn(MOB, Physical)
public Trap setTrap(MOB mob, Physical P, int trapBonus, int qualifyingClassLevel, boolean perm)
Trap
setTrap
in interface Trap
mob
- the trapperP
- 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 trapperm
- true to make the trap reset after being triggered or disarmed, false to destroy
public void gas(MOB mob)
public void needle(MOB mob)
public void blade(MOB mob)
public void victimOfSpell(MOB mob)
public void fallInPit(MOB mob)
public MOB invoker()
Ability
invoker
in interface Ability
invoker
in class StdAbility
MOB
,
Ability.setInvoker(MOB)
public int classificationCode()
Ability
classificationCode
in interface Ability
classificationCode
in class StdAbility
Ability
public void spring(MOB target)
Trap
spring
in interface Trap
target
- the target of the effectTrap.sprung()
public void resetTrap(MOB mob)
Trap
resetTrap
in interface Trap
mob
- the person resetting the trapTrap.canReSetTrap(MOB)
public void unInvoke()
Ability
unInvoke
in interface Ability
unInvoke
in class StdAbility
Ability.canBeUninvoked()
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |