Script Classes for Adventure Games/EventHandler Class: Difference between revisions

From Sierra Wiki
Jump to navigationJump to search
Andrew Branscom (talk | contribs)
m 2 revisions imported
Andrew Branscom (talk | contribs)
No edit summary
Line 1: Line 1:
{{Del}}
[[Category:SCI Pages]]
[[Official SCI Documentation]]<br />
[[Official SCI Documentation]]<br />
[[Script Classes for Adventure Games | Table of Contents]]
[[Script Classes for Adventure Games | Table of Contents]]
<div align="center">
<div align="center">
Chapter:  
Chapter:  
Line 33: Line 32:
[[Script Classes for Adventure Games/Global Variables|27]] |  
[[Script Classes for Adventure Games/Global Variables|27]] |  
[[Script Classes for Adventure Games/Index|Index]]
[[Script Classes for Adventure Games/Index|Index]]
</div><br />
</div>
 
<div align="center"><span style="font-size: 22pt">The EventHandler Class</span><br />''Author: [[Jeff Stephenson]]''<br />''1988-04-05''</div></div>
<div align="center"><span style="font-size: 22pt">The EventHandler Class</span><br />
''Author: [[Jeff Stephenson]]''<br />
''Date: 5 April 1988''</div>
 
&nbsp;


<br />
==<br > The EventHandler Class ==
==<br > The EventHandler Class ==


Line 66: Line 61:
==<br /> References ==
==<br /> References ==


<references />
<references /><!-- Do not edit this section. It is autopopulated by <ref></ref> tags -->


==<br /> See Also: ==
==<br /> Also See ==


* [[:Category:SCI Documentation|SCI Documentation]]
* [[:Category:Official SCI Documentation|Official SCI Documentation]]
* [[:Category:SCI Scripting|SCI Scripting]]
* [[:Category:SCI Classes|SCI]]
* [[:Category:SCI EventHandler Class | The SCI EventHandler Class]]
* [[SCI Specifications]]
* [[SCI Specifications]]
&nbsp;
&nbsp;


[[Official SCI Documentation]]<br />
[[Script Classes for Adventure Games | Table of Contents]]
[[Script Classes for Adventure Games | Table of Contents]]


<span style="float: left">[[Script Classes for Adventure Games/Set Class|&lt; Previous: The Set Class]]</span>
<span style="float: left">[[Script Classes for Adventure Games/Set Class|&lt; Previous: The Set Class]]</span>
<span style="float: right">[[Script Classes for Adventure Games/Inventory Class|Next: The Inventory Class &gt;]]</span>
<span style="float: right">[[Script Classes for Adventure Games/Inventory Class|Next: The Inventory Class &gt;]]</span>
&nbsp;
&nbsp;
[[Category:References]]
[[Category:References]]
[[Category:SCI References]]
[[Category:SCI References]]

Revision as of 20:55, 5 January 2026

Official SCI Documentation
Table of Contents

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 | Index

The EventHandler Class
Author: Jeff Stephenson
1988-04-05



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.


References



Also See

 

Official SCI Documentation
Table of Contents

< Previous: The Set Class Next: The Inventory Class >