eventManagerobject
The eventManager is the object that manages the execution of Events such as Fuses and Daemons.
eventManager
: object
Superclass Tree (in declaration order)
eventManager
` object`
Summary of Properties
curEvent_
eventList
schedulableList
Summary of Methods
addEvent
executeList
executePrompt
executeTurn
removeCurrentEvent
removeEvent
removeMatchingEvents
Properties
curEvent_
restore the enclosing current event
eventList
no description available
schedulableList
A list of ‘schedulables’. These are objects whose executeEvent() method should be called each turn prior to other events such as Fuses and Daemons. The main use for this in the library is to provide a mechanism for the takeTurn method of each Actor to be called before Fuses and Daemons are run, mainly in case an AgendaItem sets up a Fuse or Daemon that may need to execute on the same turn, or if a Scene wants to do so.
Methods
addEvent (event)
Add an event to the list of events to be executed.
executeList (lst)
internal service routine - execute the fuses and daemons in the given list, in eventOrder priority order
executePrompt ( )
Execute a command prompt turn. We’ll execute each per-command-prompt daemon.
executeTurn ( )
Execute a turn. We’ll execute each fuse and each daemon that is currently schedulable.
removeCurrentEvent ( )
Remove the current event - this is provided for convenience so that an event can cancel itself in the course of its execution.
Note that this has no effect on the current event execution - this simply prevents the event from receiving additional notifications in the future.
removeEvent (event)
Remove an event from the list of events to be executed.
removeMatchingEvents (obj, prop)
Remove events matching the given object and property combination. We remove all events that match both the object and property (events matching only the object or only the property are not affected).
This is provided mostly as a convenience for cases where an event is known to be uniquely identifiable by its object and property values; this saves the caller the trouble of keeping track of the Event object created when the event was first registered.
When a particular object/property combination might be used in several different events, it’s better to keep a reference to the Event object representing each event, and use removeEvent() to remove the specific Event object of interest.
Returns true if we find any matching events, nil if not.
Adv3Lite Library Reference Manual
Generated on 15/03/2023 from adv3Lite version 1.6.1