Photon 0.0.2 Simple Open Source 2D Game API |
TaskManagerTaskManager class, maintains a list of Tasks and manages their status, handles adding, deleting, pausing, and unpausing tasks. To use TaskManager
Summary
step
Steps the task manager, calling each active task once. Each ‘step’ all tasks are run in order of their priorities, if two tasks have the same priority, they are run in the order they were added. Parameters
|
TaskManager constructor, initializes task manager
TaskManager()
TaskManager destructor, destroys task manager
~TaskManager()
Steps the task manager, calling each active task once.
void step( scalar timeDelta )
Add a new Task to the TaskManager’s list.
void addTask( TaskPtr task )
Kill a task in the TaskManager task list.
void killTask( const std:: string & taskName )
Pause a task in the TaskManager task list.
void pauseTask( const std:: string & taskName )
Unpause a task in the TaskManager task list.
void unpauseTask( const std:: string & taskName )
Kills all tasks.
void killAllTasks()
Sets a fixed timestep to be used in calls to the current State’s update method.
void setFixedUpdateStep( bool enable, scalar fixedStep, scalar maxStep = )