Event

Class · class Event: object · Source

Schedules a property call on an owner after completed turns.

Audience: author

Superclass: object

Subclasses: Daemon, Fuse

Declared members

  • interval — property; Number of turns between firings, or zero for a one-shot event.
  • isActive — property; Whether this event participates in scheduling.
  • isDue — property; Observational condition that can skip a firing without stopping the event.
  • owner — property; Object on which the event's property is called.
  • prop — property; Property reference called when the event fires.
  • turnsLeft — property; Remaining completed turns before the next firing.

Member details

interval

interval = 0 · Source

Number of turns between firings, or zero for a one-shot event.

isActive

isActive = true · Source

Whether this event participates in scheduling.

isDue

isDue = true · Source

Observational condition that can skip a firing without stopping the event.

owner

owner = nil · Source

Object on which the event's property is called.

prop

prop = nil · Source

Property reference called when the event fires.

turnsLeft

turnsLeft = 1 · Source

Remaining completed turns before the next firing.