#include <TaskManager.h>
Inheritance diagram for Odyssey::TaskManager:
Public Types | |
typedef std::set< Task * > | TaskSet |
Public Member Functions | |
TaskWeakPtr | createTask (const String &typeID, const String &name) |
Create a task with the given type id and with the given name. | |
TaskWeakPtr | getTask (const String &name) const |
Returns the task with the given name. | |
TaskWeakPtr | getTask (size_t index) const |
Returns the task at the given index. | |
void | _notifyActive (Task *task, bool active) |
An engine internal function for notification that a Task's active status changed. | |
void | update (size_t index) |
Updates the task at the given index. | |
void | update (const String &name) |
Updates the task with the given name. | |
void | updateActive () |
Updates all active tasks. | |
void | updateAll () |
Updates all tasks, regardless of active status. | |
Static Public Member Functions | |
static TaskManager & | getSingleton () |
Returns the one and only instance. | |
Protected Member Functions | |
void | onRemoving (TaskPtr ptr) |
|
|
|
An engine internal function for notification that a Task's active status changed.
|
|
Create a task with the given type id and with the given name. This function uses the underlying dynamic class system to create a new Task. The task is added to the managed list of tasks, and becomes available for immediate use.
|
|
Returns the one and only instance.
|
|
Returns the task at the given index.
|
|
Returns the task with the given name.
|
|
|
|
Updates the task with the given name.
|
|
Updates the task at the given index.
|
|
Updates all active tasks.
|
|
Updates all tasks, regardless of active status.
|