aboutsummaryrefslogtreecommitdiff
path: root/engines/dm/dm.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/dm/dm.cpp')
-rw-r--r--engines/dm/dm.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp
index d6fc1f3d7d..61e68dfaa7 100644
--- a/engines/dm/dm.cpp
+++ b/engines/dm/dm.cpp
@@ -12,6 +12,7 @@
#include "dm/dm.h"
#include "dm/gfx.h"
+#include "dm/dungeonman.h"
namespace DM {
@@ -39,17 +40,23 @@ DMEngine::~DMEngine() {
delete _rnd;
delete _console;
delete _displayMan;
+ delete _dungeonMan;
// clear debug channels
DebugMan.clearAllDebugChannels();
}
+
Common::Error DMEngine::run() {
initGraphics(320, 200, false);
_console = new Console(this);
_displayMan = new DisplayMan(this);
+ _dungeonMan = new DungeonMan(this);
_displayMan->setUpScreens(320, 200);
_displayMan->loadGraphics();
+ _dungeonMan->loadDungeonFile();
+
+
byte *palette = new byte[256 * 3];
@@ -79,7 +86,6 @@ Common::Error DMEngine::run() {
_displayMan->updateScreen();
}
-
return Common::kNoError;
}