|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Trap
A trap is a kind of ability that behaves mostly like a property, in that it is not typically invoked as a skill, although there are skills that generate or make use of Trap abilities.
Field Summary | |
---|---|
static int |
TRAP_GAS
deprecated gas trap-type constant for deprecated traps. |
static int |
TRAP_NEEDLE
deprecated needle trap-type constant for deprecated traps. |
static int |
TRAP_PIT_BLADE
deprecated pit or blade trap-type constant for deprecated traps. |
static int |
TRAP_SPELL
deprecated spell trap-type constant for deprecated traps. |
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. |
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. |
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.List<Item> |
getTrapComponents()
Returns a sample set of the components used to make this trap. |
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 |
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 permanent)
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) |
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, classificationCode, combatCastingTime, enchantQuality, externalFiles, flags, getTrainingCost, helpProficiency, invoke, invoke, invoker, isAutoInvoked, isNowAnAutoEffect, makeLongLasting, makeNonUninvokable, practice, preInvoke, proficiency, proficiencyCheck, putInCommandlist, requirements, setAbilityCode, setAffectedOne, setInvoker, setProficiency, startTickDown, teach, triggerStrings, unInvoke, 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, name, tick |
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, ID, 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 |
---|
static final int TRAP_NEEDLE
static final int TRAP_PIT_BLADE
static final int TRAP_GAS
static final int TRAP_SPELL
Method Detail |
---|
boolean isABomb()
void activateBomb()
boolean disabled()
disable()
void disable()
disabled()
void spring(MOB target)
target
- the target of the effectsprung()
boolean sprung()
spring(MOB)
void resetTrap(MOB mob)
mob
- the person resetting the trapcanReSetTrap(MOB)
boolean canReSetTrap(MOB mob)
mob
- the trap setter to check
canSetTrapOn(MOB, Physical)
,
resetTrap(MOB)
void setReset(int reset)
reset
- the number of ticks between usesgetReset()
int getReset()
setReset(int)
boolean maySetTrap(MOB mob, int asLevel)
mob
- the trap setter to checkasLevel
- the level of the trapper, compared to this traps internal level
canSetTrapOn(MOB, Physical)
,
setTrap(MOB, Physical, int, int, boolean)
java.util.List<Item> getTrapComponents()
boolean canSetTrapOn(MOB mob, Physical P)
mob
- the trapperP
- the object this trap will be set upon
maySetTrap(MOB, int)
,
setTrap(MOB, Physical, int, int, boolean)
Trap setTrap(MOB mob, Physical P, int trapBonus, int qualifyingClassLevel, boolean permanent)
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 trappermanent
- true to make the trap reset after being triggered or disarmed, false to destroy
java.lang.String requiresToSet()
canSetTrapOn(MOB, Physical)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |