UGDK  0.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
taskplayer.h
Go to the documentation of this file.
1 #ifndef UGDK_SYSTEM_TASKPLAYER_H_
2 #define UGDK_SYSTEM_TASKPLAYER_H_
3 
4 #include <list>
5 #include <ugdk/system.h>
6 #include <ugdk/system/task.h>
7 
8 namespace ugdk {
9 namespace system {
10 
11 class TaskPlayer {
12  public:
14  virtual ~TaskPlayer() {}
15 
17 
26  void AddTask(const Task& task);
27 
29 
32  void Update(double delta_t);
33 
34  private:
35  std::list<Task> tasks_;
36 };
37 
38 } // namespace action */
39 } // namespace ugdk */
40 
41 #endif /* UGDK_SYSTEM_TASKPLAYER_H_ */
Definition: animation.h:11
void Update(double delta_t)
Executes all tasks held.
Definition: task.h:9
virtual ~TaskPlayer()
Definition: taskplayer.h:14
TaskPlayer()
Definition: taskplayer.h:13
void AddTask(const Task &task)
Adds a task to the scene.
Definition: taskplayer.h:11