SyncEventList class | misc.t[1189]

A synchronized event list. This is an event list that takes its actions from a separate event list object. We get our current state from the other list, and advancing our state advances the other list's state in lock step. Set 'masterObject' to refer to the master list whose state we synchronize with.

This can be useful, for example, when we have messages that reflect two different points of view on the same events: the messages for each point of view can be kept in a separate list, but the one list can be a slave of the other to ensure that the two lists are based on a common state.

`class SyncEventList : EventList`

Superclass Tree (in declaration order)

`SyncEventList`
`EventList`
`Script`
`object`

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

`masterObject`

Inherited from `EventList` :
`curScriptState eventList eventListLen`

``

Summary of Methods

`advanceState getScriptState scriptDone`

Inherited from `EventList` :
`construct doScript doScriptEvent`

``

Properties

`masterObject` | `misc.t[1191]`

my master event list object

Methods

`advanceState ( )`OVERRIDDEN | `misc.t[1197]`

to advance my state, advance the master list's state

`getScriptState ( )`OVERRIDDEN | `misc.t[1194]`

my state is simply the master list's state

`scriptDone ( )`OVERRIDDEN | `misc.t[1200]`

let the master list take care of finishing a script step

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