SyncEventListclass
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
Inherited from EventList
:
curScriptState
eventList
eventListLen
Summary of Methods
advanceState
getScriptState
scriptDone
Inherited from EventList
:
construct
doScript
doScriptEvent
Properties
masterObject
my master event list object
Methods
advanceState ( )
OVERRIDDEN
to advance my state, advance the master list’s state
getScriptState ( )
OVERRIDDEN
my state is simply the master list’s state
scriptDone ( )
OVERRIDDEN
let the master list take care of finishing a script step
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3