aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorNipun Garg2019-06-27 04:21:48 +0530
committerEugene Sandulenko2019-09-03 17:17:01 +0200
commit1b7034cd87e2caed6eef9816a1e026519ba3135d (patch)
tree42ab1b9ccd323752ebb40d58a831149adc68b9bb /engines
parente3808675d2ccbeb629da24623fc91ba733199701 (diff)
downloadscummvm-rg350-1b7034cd87e2caed6eef9816a1e026519ba3135d.tar.gz
scummvm-rg350-1b7034cd87e2caed6eef9816a1e026519ba3135d.tar.bz2
scummvm-rg350-1b7034cd87e2caed6eef9816a1e026519ba3135d.zip
HDB: Add _input subsytem and init it
Diffstat (limited to 'engines')
-rw-r--r--engines/hdb/hdb.cpp5
-rw-r--r--engines/hdb/hdb.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/engines/hdb/hdb.cpp b/engines/hdb/hdb.cpp
index 7eabd00ca2..238033c1bb 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;
+ _input = new Input;
_window = new Window;
_rnd = new Common::RandomSource("hdb");
@@ -61,6 +62,7 @@ HDBGame::~HDBGame() {
delete _lua;
delete _map;
delete _ai;
+ delete _input;
delete _window;
delete _rnd;
@@ -80,6 +82,9 @@ bool HDBGame::init() {
if (!_drawMan->init()) {
error("DrawMan::init: Couldn't initialize DrawMan");
}
+ if (!_input->init()) {
+ error("Input::init: Couldn't initialize Input");
+ }
if (!_ai->init()) {
error("AI::init: Couldn't initialize AI");
}
diff --git a/engines/hdb/hdb.h b/engines/hdb/hdb.h
index e831ab8d94..ef8a72611d 100644
--- a/engines/hdb/hdb.h
+++ b/engines/hdb/hdb.h
@@ -41,6 +41,7 @@
#include "hdb/ai.h"
#include "hdb/ai-player.h"
#include "hdb/file-manager.h"
+#include "hdb/input.h"
#include "hdb/lua-script.h"
#include "hdb/map-loader.h"
#include "hdb/window.h"
@@ -126,6 +127,7 @@ public:
LuaScript *_lua;
Map *_map;
AI *_ai;
+ Input *_input;
Window *_window;
// Random Source