SensoryEventclass
Sensory Event. This is an object representing a transient event, such as a sound, visual display, or odor, to which some objects observing the event might react.
A sensory event differs from a sensory emanation in that an emanation is ongoing and passive, while an event is isolated in time and actively notifies observers.
class
SensoryEvent
: object
Superclass Tree (in declaration order)
SensoryEvent
` object`
Subclass Tree
SensoryEvent
SightEvent
SmellEvent
SoundEvent
Global Objects
(none)
Summary of Properties
Summary of Methods
Properties
notifyProp
the notification property - this is the property we’ll invoke on each observer to notify it of the event
sense
the sense in which the event is observable
Methods
triggerEvent (source)
Trigger the event. This routine must be called at the time when the event is to occur. We’ll notify every interested observer capable of sensing the event that the event is occurring, so observers can take appropriate action in response to the event.
‘source’ is the source object - this is the physical object in the simulation that is causing the event. For example, if the event is the sound of a phone ringing, the phone would probably be the source object. The source is used to determine which observers are capable of detecting the event: an observer must be able to sense the source object in the appropriate sense to be notified of the event.
TADS 3 Library Manual
Generated on 5/16/2013 from TADS version 3.1.3