|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object wyvern.kernel.properties.PList wyvern.kernel.maps.MapObject wyvern.kernel.commands.AbstractCommandable wyvern.lib.classes.traps.AbstractTrap wyvern.lib.classes.traps.PitTrap
Pit: hurts you, and you have to struggle out of it.
Field Summary |
Fields inherited from class wyvern.kernel.commands.AbstractCommandable |
hookList_, queue_, started_ |
Fields inherited from class wyvern.kernel.maps.MapObject |
IN_MAP_EDITOR, listenerList_ |
Fields inherited from class wyvern.kernel.properties.PList |
readOnly_ |
Fields inherited from interface wyvern.lib.PropertyList |
PROPERTY_PACKAGE |
Fields inherited from interface wyvern.common.net.RemoteAudio |
DEFAULT_ALERT_GAIN, DEFAULT_ALERT_REPEAT_DELAY, DEFAULT_ALERT_REPEATS, DEFAULT_GAIN, DEFAULT_REPEAT_DELAY, DEFAULT_REPEATS |
Constructor Summary | |
PitTrap()
|
Method Summary | |
void |
destroy()
Let them out if the trap is destroyed. |
java.lang.String |
getStuckMessage()
Returns message to send when player is stuck. |
java.lang.String |
getTriggerMessage()
Returns the "trigger-msg" property, if present. |
void |
hookEvent(java.lang.String hookName,
CommandEvent event)
Blocks moves. |
void |
initCount()
Re-initializes the hold count for the trap. |
void |
initialize()
Adds class-default properties |
void |
removeHooks(Commandable monster)
Takes us off monster's hooks. |
void |
steppedOn(Monster monster)
Activates trap. |
void |
targetEnteredMap(MapChangeEvent event)
Notification that the target object has entered a map. |
void |
targetLeftMap(MapChangeEvent event)
Notification that the target object has left its map. |
void |
targetMoved(MapMotionEvent event)
Notification that the lucky bastards teleported away. |
Methods inherited from class wyvern.lib.classes.traps.AbstractTrap |
isRevealed, reveal, reveal, shouldTrip |
Methods inherited from class wyvern.kernel.commands.AbstractCommandable |
addAttack, addHook, addMessageListener, addMethodHook, checkAnimated, command, command, commandNow, ensureAI, ensureEventQueue, fireMessageReceived, getAI, getCapName, getCombatQueue, getCommand, getEncumbrance, getFiringPoint, getHookList, getHooks, getInventory, getName, getQueue, isCommandable, isStarted, isTelnet, message, message, message, pauseSound, playAlert, playAlert, playDefaultMusic, playPriorityMusic, playPriorityMusic, playSound, playSound, registerCommand, removeAttack, removeHook, removeMessageListener, removeMethodHook, resumeSound, runFailedPostHook, runMethodHook, runPostHook, runPreHook, sendPicture, sendPicture, setAI, setEncumbrance, setMusicGain, setName, setSoundGain, start, stop, stopAllSounds, stopMusic, stopSound, unregisterCommand |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface wyvern.lib.Broadcaster |
broadcast, broadcast, broadcast, broadcast, broadcast |
Constructor Detail |
public PitTrap()
Method Detail |
public void initialize()
AbstractTrap
initialize
in interface GameObject
initialize
in class AbstractTrap
public java.lang.String getTriggerMessage()
public void steppedOn(Monster monster)
steppedOn
in interface WalkNotify
steppedOn
in class AbstractTrap
monster
- the monster who stepped on itpublic void hookEvent(java.lang.String hookName, CommandEvent event)
hookEvent
in interface HookCallback
hookName
- the name of the hook, such as "movePreHook".event
- the CommandEvent encapsulating the event parameterspublic void removeHooks(Commandable monster)
public void targetEnteredMap(MapChangeEvent event)
targetEnteredMap
in interface MapChangeListener
public void targetLeftMap(MapChangeEvent event)
targetLeftMap
in interface MapChangeListener
public void targetMoved(MapMotionEvent event)
targetMoved
in interface MapMotionListener
public void destroy()
destroy
in interface GameObject
destroy
in class AbstractCommandable
public void initCount()
public java.lang.String getStuckMessage()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |