Script Classes for Adventure Games/Code Class

From SCI Wiki
Jump to navigationJump to search

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


The Code Class

Author: Jeff Stephenson

Date: 5 April 1988

 


The Code Class

The class Code encapsulates the concept of a subroutine into an object which can be executed or passed to an object for execution. This class is also used for making loopers and viewers.

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


Properties


Methods

doit: [args...]

The doit: method of a Code object is the code to be executed. Any number of arguments is allowed.

 

Notes


 

Table of Contents

 

< Previous: The File Class Next: Global Variables >