|
|||||||||
| 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
public class Trap_RoomPit
| Field Summary | |
|---|---|
protected java.util.List<Room> |
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_RoomPit()
|
|
| 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 |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
void |
finishSpringing(MOB target)
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
protected void |
makePit(MOB target)
|
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. |
void |
spring(MOB target)
This method causes this trap to take affect against the given target. |
boolean |
tick(Tickable ticking,
int tickID)
this is the method which is called periodically by the threading engine. |
protected int |
trapLevel()
|
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 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, getTrapComponents, getTravelThroughFlag, invoke, invoker, isABomb, isLocalExempt, maySetTrap, okMessage, resetTrap, setAbilityCode, setInvoker, setMiscText, setReset, setTrap, 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 |
|---|
protected java.util.List<Room> pit
| Constructor Detail |
|---|
public Trap_RoomPit()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdTrappublic java.lang.String name()
Tickable
name in interface CMObjectname in interface Tickablename in class StdTrapEnvironmental.Name()protected int canAffectCode()
StdAbility
canAffectCode in class StdTrapAbilityprotected int canTargetCode()
StdAbility
canTargetCode in class StdTrapAbilityprotected int trapLevel()
trapLevel in class StdTrappublic java.lang.String requiresToSet()
Trap
requiresToSet in interface TraprequiresToSet in class StdTrapTrap.canSetTrapOn(MOB, Physical)public void unInvoke()
Ability
unInvoke in interface AbilityunInvoke in class StdAbilityAbility.canBeUninvoked()
public boolean canSetTrapOn(MOB mob,
Physical P)
Trap
canSetTrapOn in interface TrapcanSetTrapOn in class StdTrapmob - the trapperP - the object this trap will be set upon
Trap.maySetTrap(MOB, int),
Trap.setTrap(MOB, Physical, int, int, boolean)
public boolean tick(Tickable ticking,
int tickID)
Tickable
tick in interface Tickabletick in class StdTrapticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in Tickable
Tickable,
ServiceEngine,
TickableGroupprotected void makePit(MOB target)
public void executeMsg(Environmental myHost,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenerexecuteMsg in class StdTrapmyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic void finishSpringing(MOB target)
public void spring(MOB target)
Trap
spring in interface Trapspring in class StdTraptarget - the target of the effectTrap.sprung()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||