SyncEventListclass | eventList.t[321]

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 resetEachCycle`

``

Summary of Methods

`advanceState getScriptState scriptDone`

Inherited from `EventList` :
`addItem construct doScript doScriptEvent resetList`

``

Properties

`masterObject` | `eventList.t[323]`

my master event list object

Methods

`advanceState ( )`OVERRIDDEN | `eventList.t[329]`

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

`getScriptState ( )`OVERRIDDEN | `eventList.t[326]`

my state is simply the master list's state

`scriptDone ( )`OVERRIDDEN | `eventList.t[332]`

let the master list take care of finishing a script step

Adv3Lite Library Reference Manual
Generated on 01/03/2024 from adv3Lite version 1.6.2