diff options
author | Nipun Garg | 2019-06-23 02:37:14 +0530 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:16:56 +0200 |
commit | 28ab1f95491b1abec0af3b8d74c117fb6b2dee84 (patch) | |
tree | 73bbc8585f68c2fc00d15d3e567ffe4884be5368 | |
parent | 3ffbcec87e186fa1b81034273ea8d6beef8134ab (diff) | |
download | scummvm-rg350-28ab1f95491b1abec0af3b8d74c117fb6b2dee84.tar.gz scummvm-rg350-28ab1f95491b1abec0af3b8d74c117fb6b2dee84.tar.bz2 scummvm-rg350-28ab1f95491b1abec0af3b8d74c117fb6b2dee84.zip |
HDB: Add and init the _window subsystem
-rw-r--r-- | engines/hdb/hdb.cpp | 5 | ||||
-rw-r--r-- | engines/hdb/hdb.h | 8 |
2 files changed, 10 insertions, 3 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp index 6e339ebf12..e92aab3c92 100644 --- a/engines/hdb/hdb.cpp +++ b/engines/hdb/hdb.cpp @@ -47,6 +47,7 @@ HDBGame::HDBGame(OSystem *syst, const ADGameDescription *gameDesc) : Engine(syst _lua = new LuaScript; _map = new Map; _ai = new AI; + _window = new Window; _rnd = new Common::RandomSource("hdb"); DebugMan.addDebugChannel(kDebugExample1, "Example1", "This is just an example to test"); @@ -60,6 +61,7 @@ HDBGame::~HDBGame() { delete _lua; delete _map; delete _ai; + delete _window; delete _rnd; DebugMan.clearAllDebugChannels(); @@ -84,6 +86,9 @@ bool HDBGame::init() { if (!_lua->init()) { error("LuaScript::init: Couldn't load the GLOBAL_LUA code."); } + if (!_window->init()) { + error("Window::init: Couldn't initialize Window"); + } // REMOVE: Putting this here since Menu hasn't been implemented yet. // Defaults the game into Action Mode diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h index bd2f82d880..139d610964 100644 --- a/engines/hdb/hdb.h +++ b/engines/hdb/hdb.h @@ -37,12 +37,13 @@ #include "engines/util.h" #include "console.h" -#include "hdb/file-manager.h" #include "hdb/draw-manager.h" -#include "hdb/lua-script.h" -#include "hdb/map-loader.h" #include "hdb/ai.h" #include "hdb/ai-player.h" +#include "hdb/file-manager.h" +#include "hdb/lua-script.h" +#include "hdb/map-loader.h" +#include "hdb/window.h" #define MAX_SNDCACHE_MEM 0x400000 // 4Mb of sounds in memory #define MAX_TILES_CACHED 3500 // Max no of tiles in memory at once @@ -119,6 +120,7 @@ public: LuaScript *_lua; Map *_map; AI *_ai; + Window *_window; // Random Source Common::RandomSource *_rnd; |