|
|||||||||
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.StdTrap
com.planet_ink.coffee_mud.Abilities.Traps.Trap_RoomPit
com.planet_ink.coffee_mud.Abilities.Traps.Trap_SpikePit
public class Trap_SpikePit
Field Summary | |
---|---|
java.util.List<java.lang.Integer> |
daggerDamages
|
Fields inherited from class com.planet_ink.coffee_mud.Abilities.Traps.Trap_RoomPit |
---|
pit |
Fields inherited from class com.planet_ink.coffee_mud.Abilities.Traps.StdTrap |
---|
ableCode, disabled, newMessaging, reset, safeDirs, sprung, TRIGGER |
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_SpikePit()
|
Method Summary | |
---|---|
protected int |
canAffectCode()
Designates whether, when used as a property/effect, what sort of objects this ability can affect. |
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. |
void |
finishSpringing(MOB target)
|
protected Item |
getDagger(MOB mob)
|
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. |
java.lang.String |
name()
The nice displayable name of this instance of this object |
java.lang.String |
requiresToSet()
A simple display string describing the conditions necesssary to get the canSetTrapOn method to return true. |
Trap |
setTrap(MOB mob,
Physical P,
int trapBonus,
int qualifyingClassLevel,
boolean perm)
Completed the task of setting a trap on a given object. |
protected int |
trapLevel()
|
Methods inherited from class com.planet_ink.coffee_mud.Abilities.Traps.Trap_RoomPit |
---|
executeMsg, makePit, spring, tick, unInvoke |
Methods inherited from class com.planet_ink.coffee_mud.Abilities.Traps.StdTrap |
---|
abilityCode, abstractQuality, activateBomb, baseDestructTime, baseRejuvTime, canInvokeTrapOn, canReSetTrap, classificationCode, copyOf, destroyResources, disable, disabled, doesSaveVsTraps, enchantQuality, findFirstResource, findMostOfMaterial, findNumberOfResource, getReset, getSafeDirs, getTravelThroughFlag, invoke, invoker, isABomb, isLocalExempt, maySetTrap, okMessage, resetTrap, setAbilityCode, setInvoker, setMiscText, setReset, sprung, text, triggerStrings |
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 |
---|
accountForYourself, adjustedLevel, affecting, appropriateToMyFactions, autoInvocation, bubbleAffect, canAffect, canAffect, canBeLearnedBy, canBePracticedBy, canBeTaughtBy, canBeUninvoked, canTarget, canTarget, castingQuality, castingTime, checkedCastingCost, combatCastingTime, externalFiles, flags, getTrainingCost, helpProficiency, invoke, isAutoInvoked, isNowAnAutoEffect, makeLongLasting, makeNonUninvokable, practice, preInvoke, proficiency, proficiencyCheck, putInCommandlist, requirements, setAffectedOne, setProficiency, startTickDown, teach, 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, setName |
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.Contingent |
---|
amDestroyed, destroy, isSavable, setSavable |
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
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 |
---|
public java.util.List<java.lang.Integer> daggerDamages
Constructor Detail |
---|
public Trap_SpikePit()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class Trap_RoomPit
public java.lang.String name()
Tickable
name
in interface CMObject
name
in interface Tickable
name
in class Trap_RoomPit
Environmental.Name()
protected int canAffectCode()
StdAbility
canAffectCode
in class Trap_RoomPit
Ability
protected int canTargetCode()
StdAbility
canTargetCode
in class Trap_RoomPit
Ability
protected int trapLevel()
trapLevel
in class Trap_RoomPit
public java.lang.String requiresToSet()
Trap
requiresToSet
in interface Trap
requiresToSet
in class Trap_RoomPit
Trap.canSetTrapOn(MOB, Physical)
protected Item getDagger(MOB mob)
public Trap setTrap(MOB mob, Physical P, int trapBonus, int qualifyingClassLevel, boolean perm)
Trap
setTrap
in interface Trap
setTrap
in class StdTrap
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 java.util.List<Item> getTrapComponents()
Trap
getTrapComponents
in interface Trap
getTrapComponents
in class StdTrap
public boolean canSetTrapOn(MOB mob, Physical P)
Trap
canSetTrapOn
in interface Trap
canSetTrapOn
in class Trap_RoomPit
mob
- the trapperP
- the object this trap will be set upon
Trap.maySetTrap(MOB, int)
,
Trap.setTrap(MOB, Physical, int, int, boolean)
public void finishSpringing(MOB target)
finishSpringing
in class Trap_RoomPit
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |