aboutsummaryrefslogtreecommitdiff
path: root/engines/cge2/cge2.cpp
diff options
context:
space:
mode:
authoruruk2014-05-19 17:10:18 +0200
committeruruk2014-05-19 17:10:18 +0200
commite6229a259608de6bf1c9f81d2e66101addef1339 (patch)
tree404f15bd7c388746a8da09a51117f3fd9ccf87a1 /engines/cge2/cge2.cpp
parentb5931e205063c71ec82c7d80287b9228b2852cdc (diff)
downloadscummvm-rg350-e6229a259608de6bf1c9f81d2e66101addef1339.tar.gz
scummvm-rg350-e6229a259608de6bf1c9f81d2e66101addef1339.tar.bz2
scummvm-rg350-e6229a259608de6bf1c9f81d2e66101addef1339.zip
CGE2: Add Mouse in events.h to further implement caveUp().
Diffstat (limited to 'engines/cge2/cge2.cpp')
-rw-r--r--engines/cge2/cge2.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/cge2/cge2.cpp b/engines/cge2/cge2.cpp
index 54d3ee4c02..385fe4ea73 100644
--- a/engines/cge2/cge2.cpp
+++ b/engines/cge2/cge2.cpp
@@ -35,6 +35,7 @@
#include "cge2/hero.h"
#include "cge2/general.h"
#include "cge2/spare.h"
+#include "cge2/events.h"
namespace CGE2 {
@@ -55,6 +56,7 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription)
_spare = nullptr;
_commandHandler = nullptr;
_infoLine = nullptr;
+ _mouse = nullptr;
_quitFlag = false;
_bitmapPalette = nullptr;
@@ -64,6 +66,7 @@ CGE2Engine::CGE2Engine(OSystem *syst, const ADGameDescription *gameDescription)
_now = 1;
_sex = true;
_mouseTop = kWorldHeight / 3;
+ _dark = false;
}
void CGE2Engine::init() {
@@ -81,6 +84,7 @@ void CGE2Engine::init() {
_spare = new Spare(this);
_commandHandler = new CommandHandler(this, false);
_infoLine = new InfoLine(this, kInfoW);
+ _mouse = new Mouse(this);
}
void CGE2Engine::deinit() {
@@ -103,6 +107,7 @@ void CGE2Engine::deinit() {
delete _spare;
delete _commandHandler;
delete _infoLine;
+ delete _mouse;
}
bool CGE2Engine::hasFeature(EngineFeature f) const {