diff options
Diffstat (limited to 'engines/mutationofjb/tasks/taskmanager.h')
-rw-r--r-- | engines/mutationofjb/tasks/taskmanager.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/mutationofjb/tasks/taskmanager.h b/engines/mutationofjb/tasks/taskmanager.h index 1f6be36ced..299a271711 100644 --- a/engines/mutationofjb/tasks/taskmanager.h +++ b/engines/mutationofjb/tasks/taskmanager.h @@ -24,6 +24,7 @@ #define MUTATIONOFJB_TASKMANAGER_H #include "common/array.h" +#include "task.h" namespace MutationOfJB { @@ -34,15 +35,14 @@ class TaskManager { public: TaskManager(Game &game) : _game(game) {} - void addTask(Task *task); - void removeTask(Task *task); + void addTask(const TaskPtr &task); + void removeTask(const TaskPtr &task); void update(); Game &getGame() { return _game; } private: - typedef Common::Array<Task *> Tasks; - Tasks _tasks; + TaskPtrs _tasks; Game &_game; }; |