Difference between revisions of "Script Classes for Adventure Games/EventHandler Class"

From SCI Wiki
Jump to navigationJump to search
Line 62: Line 62:
 
 
 
 
  
xxxxxxx body xxxxxxxx
+
==<br > 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).
 +
 
 +
{|
 +
|In file:||system.sc
 +
|-
 +
|Inherits from:||Set
 +
|-
 +
|Inherited by:||none
 +
|}
 +
 
 +
===<br /> Properties ===
 +
 
 +
<blockquote>&nbsp;</blockquote>
 +
 
 +
===<br /> Methods ===
 +
 
 +
====<br /> handleEvent.  event ====
 +
<blockquote>Passes on the handleEvent message to each of its member. and returns TRUE if one of its elements claim the event. otherwise FALSE.</blockquote>
  
 
&nbsp;
 
&nbsp;

Revision as of 01:37, 7 December 2015

Official SCI Documentation

Chapter: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26
27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | Index


The EventHandler Class

Author: Jeff Stephenson

Date: 5 April 1988

 


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).

In file: system.sc
Inherits from: Set
Inherited by: none


Properties

 


Methods


handleEvent. event

Passes on the handleEvent message to each of its member. and returns TRUE if one of its elements claim the event. otherwise FALSE.

 

Notes


 

Table of Contents

 

< Previous: Set Class Next: Inventory >