wyvern.kernel.maps
Class RoomHookList
java.lang.Object
wyvern.kernel.maps.RoomHookList
- public class RoomHookList
- extends java.lang.Object
This class implements "room-hooks". A room hook is a way for
an object to say it wants to be notified if a certain event
happens in a particular sub-rectangle of a particular map.
- Version:
- 1.0, May 18, 1998
- Author:
- Steve Yegge
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RoomHookList
public RoomHookList()
addHook
public void addHook(RoomHookCallback callback,
java.lang.String hookName,
Rectangle room)
removeHook
public void removeHook(RoomHookCallback callback,
java.lang.String hookName,
Rectangle room)
runPreHook
public void runPreHook(CommandEvent event)
runPostHook
public void runPostHook(CommandEvent event)
runFailedPostHook
public void runFailedPostHook(CommandEvent event)
toString
public java.lang.String toString()
- Returns a String representation of this object.
- Returns:
- a string showing all the hook callbacks and the
methods they're registered for