Script Classes for Adventure Games/EventHandler Class
Author: Jeff Stephenson
The EventHandler Class
The EventHandler is a kind of Set that has a handleEvent method. The handleEvent method for this Class invokes the handleEvent method for each of its elements. The return is TRUE if one of the elements claimed the event, otherwise FALSE.
The cast of an adventure game is an EventHandler consisting of Views, Props, Actors, and Ego. The features list is also an EventHandler consisting of Features and (possibly) PicViews. (see class descriptions below).
Passes on the handleEvent message to each of its member. and returns TRUE if one of its elements claim the event. otherwise FALSE.