diff options
Diffstat (limited to 'engines/mutationofjb/tasks/task.h')
-rw-r--r-- | engines/mutationofjb/tasks/task.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/mutationofjb/tasks/task.h b/engines/mutationofjb/tasks/task.h index 1b98097b9c..9f2acb3d6b 100644 --- a/engines/mutationofjb/tasks/task.h +++ b/engines/mutationofjb/tasks/task.h @@ -24,6 +24,8 @@ #define MUTATIONOFJB_TASK_H #include "common/scummsys.h" +#include "common/ptr.h" +#include "common/array.h" namespace MutationOfJB { @@ -37,7 +39,7 @@ public: FINISHED }; - Task() : _taskManager(nullptr) {} + Task() : _taskManager(nullptr), _state(IDLE) {} virtual ~Task() {} virtual void start() = 0; @@ -56,6 +58,9 @@ private: State _state; }; +typedef Common::SharedPtr<Task> TaskPtr; +typedef Common::Array<Common::SharedPtr<Task> > TaskPtrs; + } #endif |