Script class | misc.t[857]

Generic script object. This class can be used to implement a simple state machine.

`class Script : object`

Superclass Tree (in declaration order)

`Script`
`object`

Subclass Tree

`Script`
`EventList`
`CyclicEventList`
`ExternalEventList`
`RandomEventList`
`ShuffledEventList`
`StopEventList`
`SyncEventList`

Global Objects

(none)

Summary of Properties

`curScriptState`

Summary of Methods

`doScript getScriptState`

Properties

`curScriptState` | `misc.t[889]`

Property giving our current state. This should never be used directly; instead, getScriptState() should always be used, since getScriptState() can be overridden so that the state depends on something other than this internal state property. The meaning of the state identifier is specific to each subclass.

Methods

`doScript ( )` | `misc.t[877]`

Process the next step of the script. This routine must be overridden to perform the action of the script. This routine's action should call getScriptState() to get our current state, and should update the internal state appropriately to take us to the next step after the current one.

By default, we don't do anything at all.

`getScriptState ( )` | `misc.t[862]`

Get the current state. This returns a value that gives the current state of the script, which is usually simply an integer.

TADS 3 Library Manual
Generated on 8/21/2012 from TADS version 3.1.2