|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwyvern.kernel.properties.PList
wyvern.kernel.maps.MapObject
wyvern.kernel.commands.AbstractCommandable
wyvern.lib.classes.traps.AbstractTrap
wyvern.lib.classes.traps.BearTrap
Gets you stuck.
| 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 | |
BearTrap()
|
|
| Method Summary | |
protected boolean |
checkFlying(Monster monster)
Returns true if the monster is flying (so we shouldn't trigger the trap.) |
void |
destroy()
Let them out if the trap is destroyed. |
void |
finished()
Called when the player finally breaks out of the trap. |
java.lang.String |
getStuckMessage()
Returns the message to issue when you're trying to struggle free from the trap. |
java.lang.String |
getTriggerMessage()
Returns the message to issue when they step into the trap. |
void |
hookEvent(java.lang.String hookName,
CommandEvent event)
Blocks moves. |
void |
initCount()
Sets an initial stickness, based on the current map danger level. |
void |
initialize()
Adds class-default properties |
void |
removeHooks(Commandable monster)
Takes us off monster's hooks. |
void |
setMap(GameMap map,
int x,
int y)
Sets the initial hold-count for the trap, based on the map's danger level. |
void |
steppedOn(Monster monster)
Activates trap. |
void |
targetEnteredContainer(ContainerChangeEvent event)
Target object was added to a bag or inventory. |
void |
targetEnteredMap(MapChangeEvent event)
Notification that the target object has entered a map. |
void |
targetLeftContainer(ContainerChangeEvent event)
Target object was removed from a bag or inventory. |
void |
targetLeftMap(MapChangeEvent event)
Notification that the target object has left its map. |
void |
targetMoved(MapMotionEvent event)
Notification that the target object has moved in its map. |
void |
trigger(Monster monster)
Triggers the trap. |
void |
unhookMonster()
Removes our reference to the monster/player who stepped on us if any, and removes our hooks into the monster. |
| 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 BearTrap()
| Method Detail |
public void initialize()
AbstractTrap
initialize in interface GameObjectinitialize in class AbstractTrap
public void setMap(GameMap map,
int x,
int y)
setMap in interface GameObjectsetMap in class MapObjectpublic void steppedOn(Monster monster)
steppedOn in interface WalkNotifysteppedOn in class AbstractTrapmonster - the monster who stepped on itpublic void trigger(Monster monster)
public void initCount()
protected boolean checkFlying(Monster monster)
public void hookEvent(java.lang.String hookName,
CommandEvent event)
hookEvent in interface HookCallbackhookName - the name of the hook, such as "movePreHook".event - the CommandEvent encapsulating the event parameterspublic void finished()
public java.lang.String getStuckMessage()
public java.lang.String getTriggerMessage()
public void targetEnteredContainer(ContainerChangeEvent event)
ContainerChangeListener
targetEnteredContainer in interface ContainerChangeListenerpublic void targetLeftMap(MapChangeEvent event)
MapChangeListener
targetLeftMap in interface MapChangeListenerpublic void targetEnteredMap(MapChangeEvent event)
MapChangeListener
targetEnteredMap in interface MapChangeListenerpublic void targetMoved(MapMotionEvent event)
MapMotionListener
targetMoved in interface MapMotionListenerpublic void targetLeftContainer(ContainerChangeEvent event)
ContainerChangeListener
targetLeftContainer in interface ContainerChangeListenerpublic void destroy()
destroy in interface GameObjectdestroy in class AbstractCommandablepublic void unhookMonster()
public void removeHooks(Commandable monster)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||