wyvern.kernel.maps
Class RoomHookList

java.lang.Object
  extended bywyvern.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

Constructor Summary
RoomHookList()
           
 
Method Summary
 void addHook(RoomHookCallback callback, java.lang.String hookName, Rectangle room)
           
 void removeHook(RoomHookCallback callback, java.lang.String hookName, Rectangle room)
           
 void runFailedPostHook(CommandEvent event)
           
 void runPostHook(CommandEvent event)
           
 void runPreHook(CommandEvent event)
           
 java.lang.String toString()
          Returns a String representation of this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RoomHookList

public RoomHookList()
Method Detail

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