Daemonclass
Daemon. A daemon is an event that fires repeatedly at given intervals. When a daemon is executed, it is scheduled again for execution after its interval elapses again.
class
Daemon
:
Event
Superclass Tree (in declaration order)
Daemon
Event
BasicEvent
` object`
Subclass Tree
Daemon
SenseDaemon
Global Objects
(none)
Summary of Properties
Inherited from Event
:
eventOrder
isPromptDaemon
nextRunTime
Inherited from BasicEvent
:
obj_
prop_
sense_
source_
Summary of Methods
Inherited from Event
:
delayEvent
getNextRunTime
removeEvent
Inherited from BasicEvent
:
callMethod
eventMatches
Properties
interval_
our execution interval, in turns
Methods
construct (obj, prop, interval)
OVERRIDDEN
Creation. ‘interval’ is the number of turns between invocations of the daemon; this should be at least 1, which causes the daemon to be invoked on each turn. The first execution will be (interval-1) turns in the future - so if interval is 1, the daemon will first be executed on the current turn, and if interval is 2, the daemon will be executed on the next turn.
executeEvent ( )
OVERRIDDEN
execute the daemon
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3