DM: Add ObjectMan to DMEngine

This commit is contained in:
Bendegúz Nagy 2016-06-19 00:54:28 +02:00
parent 359ef01a33
commit 23c1acff19
2 changed files with 6 additions and 0 deletions

View File

@ -18,6 +18,7 @@
#include "menus.h"
#include "champion.h"
#include "loadsave.h"
#include "objectman.h"
namespace DM {
@ -49,6 +50,7 @@ DMEngine::DMEngine(OSystem *syst) : Engine(syst), _console(nullptr) {
_menuMan = nullptr;
_championMan = nullptr;
_loadsaveMan = nullptr;
_objectMan = nullptr;
_stopWaitingForPlayerInput = false;
_gameTimeTicking = false;
@ -67,6 +69,7 @@ DMEngine::~DMEngine() {
delete _menuMan;
delete _championMan;
delete _loadsaveMan;
delete _objectMan;
// clear debug channels
DebugMan.clearAllDebugChannels();
@ -142,6 +145,7 @@ Common::Error DMEngine::run() {
_menuMan = new MenuMan(this);
_championMan = new ChampionMan(this);
_loadsaveMan = new LoadsaveMan(this);
_objectMan = new ObjectMan(this);
_displayMan->setUpScreens(320, 200);
initializeGame(); // @ F0463_START_InitializeGame_CPSADEF

View File

@ -15,6 +15,7 @@ class EventManager;
class MenuMan;
class ChampionMan;
class LoadsaveMan;
class ObjectMan;
enum direction {
@ -99,6 +100,7 @@ public:
MenuMan *_menuMan;
ChampionMan *_championMan;
LoadsaveMan *_loadsaveMan;
ObjectMan *_objectMan;
bool _stopWaitingForPlayerInput; // G0321_B_StopWaitingForPlayerInput
bool _gameTimeTicking; // @ G0301_B_GameTimeTicking
bool _restartGameAllowed; // @ G0524_B_RestartGameAllowed