Methods
init()
Initialize the task.
- Source
isDone() → {boolean}
Check if the task is complete and can be removed.
- Source
Returns:
Whether the task has completed
- Type:
- boolean
stop()
Set the task's status to done so it will be removed.
- Source
update(elapsed)
Update the task.
Parameters:
Name | Type | Description |
---|---|---|
elapsed | number | Time since last update cycle in seconds |
- Source