#include <ugdk/system/taskplayer.h>
ugdk::system::TaskPlayer::TaskPlayer |
( |
| ) |
|
|
inline |
virtual ugdk::system::TaskPlayer::~TaskPlayer |
( |
| ) |
|
|
inlinevirtual |
void ugdk::system::TaskPlayer::AddTask |
( |
const Task & |
task | ) |
|
Adds a task to the scene.
All tasks are called for each Scene's Update, in order of the priorities, which are ordered from smaller values to bigger values.
The task's returned value is used to destroy the task or keep it alive:
- True keeps then for another Update.
- False destroys then.
- void return type implies in 'always true'.
Priority values are commonly in the [0; 1] interval.
void ugdk::system::TaskPlayer::Update |
( |
double |
delta_t | ) |
|
Executes all tasks held.
- Parameters
-
delta_t | Time in seconds since last update |
The documentation for this class was generated from the following file: