Schedulableclass | events.t[223] |
Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
Note that we build a list of all Schedulable instances during pre-initialization. If any Schedulable objects are dynamically created, they must be added to the list explicitly after creation in order for the event manager to schedule them for execution. The default constructor does this automatically, so subclasses can simply inherit our constructor to be added to the master list.
class
Schedulable : object
Schedulable
Actor
UntakeableActor
Person
allSchedulables
gameClockTime
nextRunTime
scheduleOrder
calcScheduleOrder
construct
execute
executeTurn
getNextRunTime
incNextRunTime
allSchedulables | events.t[308] |
gameClockTime | events.t[300] |
nextRunTime | events.t[291] |
scheduleOrder | events.t[273] |
This should never be evaluated except immediately after a call to calcScheduleOrder.
calcScheduleOrder ( ) | events.t[288] |
By default, we assume that the schedule order is static, so we simply leave our scheduleOrder property unchanged and return its present value.
construct ( ) | events.t[225] |
execute ( ) | events.t[320] |
executeTurn ( ) | events.t[262] |
The scheduler will invoke this method of the same object repeatedly for as long as its nextRunTime remains unchanged AND this method returns true. If the object's scheduling priority changes relative to other schedulable objects, it should return nil here to tell the scheduler to recalculate scheduling priorities.
getNextRunTime ( ) | events.t[240] |
incNextRunTime (amt) | events.t[243] |