diff options
author | Bendegúz Nagy | 2016-08-26 22:37:14 +0200 |
---|---|---|
committer | Bendegúz Nagy | 2016-08-26 23:02:22 +0200 |
commit | 4b67e047eda34ae4ee54f416355f3154bb08d56d (patch) | |
tree | e05b453054bdd70f56967acb18fe0ce07be0af20 /engines | |
parent | 23e0dfcc282a27ff16ba2891971de5ea5fe336c9 (diff) | |
download | scummvm-rg350-4b67e047eda34ae4ee54f416355f3154bb08d56d.tar.gz scummvm-rg350-4b67e047eda34ae4ee54f416355f3154bb08d56d.tar.bz2 scummvm-rg350-4b67e047eda34ae4ee54f416355f3154bb08d56d.zip |
DM: Add MovesensMan
Diffstat (limited to 'engines')
-rw-r--r-- | engines/dm/dm.cpp | 6 | ||||
-rw-r--r-- | engines/dm/dm.h | 2 | ||||
-rw-r--r-- | engines/dm/module.mk | 3 | ||||
-rw-r--r-- | engines/dm/movesens.cpp | 37 | ||||
-rw-r--r-- | engines/dm/movesens.h | 44 |
5 files changed, 90 insertions, 2 deletions
diff --git a/engines/dm/dm.cpp b/engines/dm/dm.cpp index c8b02e9823..fec043a253 100644 --- a/engines/dm/dm.cpp +++ b/engines/dm/dm.cpp @@ -48,6 +48,7 @@ #include "objectman.h" #include "inventory.h" #include "text.h" +#include "movesens.h" namespace DM { @@ -83,7 +84,8 @@ DMEngine::DMEngine(OSystem *syst) : Engine(syst), _console(nullptr) { _objectMan = nullptr; _inventoryMan = nullptr; _textMan = nullptr; - + _movsens = nullptr; + _stopWaitingForPlayerInput = false; _gameTimeTicking = false; _restartGameAllowed = false; @@ -111,6 +113,7 @@ DMEngine::~DMEngine() { delete _objectMan; delete _inventoryMan; delete _textMan; + delete _movsens; // clear debug channels DebugMan.clearAllDebugChannels(); @@ -189,6 +192,7 @@ Common::Error DMEngine::run() { _objectMan = new ObjectMan(this); _inventoryMan = new InventoryMan(this); _textMan = new TextMan(this); + _movsens = new MovesensMan(this); _displayMan->setUpScreens(320, 200); initializeGame(); // @ F0463_START_InitializeGame_CPSADEF diff --git a/engines/dm/dm.h b/engines/dm/dm.h index 430c7d39e2..aa37776286 100644 --- a/engines/dm/dm.h +++ b/engines/dm/dm.h @@ -45,6 +45,7 @@ class LoadsaveMan; class ObjectMan; class InventoryMan; class TextMan; +class MovesensMan; enum direction { @@ -133,6 +134,7 @@ public: ObjectMan *_objectMan; InventoryMan *_inventoryMan; TextMan *_textMan; + MovesensMan *_movsens; bool _stopWaitingForPlayerInput; // G0321_B_StopWaitingForPlayerInput bool _gameTimeTicking; // @ G0301_B_GameTimeTicking diff --git a/engines/dm/module.mk b/engines/dm/module.mk index b78ad9679e..bd9b57677b 100644 --- a/engines/dm/module.mk +++ b/engines/dm/module.mk @@ -39,7 +39,8 @@ MODULE_OBJS := \ loadsave.o \ objectman.o \ inventory.o \ - text.o + text.o \ + movesens.o MODULE_DIRS += \ engines/dm diff --git a/engines/dm/movesens.cpp b/engines/dm/movesens.cpp new file mode 100644 index 0000000000..9654d779b5 --- /dev/null +++ b/engines/dm/movesens.cpp @@ -0,0 +1,37 @@ +/* ScummVM - Graphic Adventure Engine +* +* ScummVM is the legal property of its developers, whose names +* are too numerous to list here. Please refer to the COPYRIGHT +* file distributed with this source distribution. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + + +#include "movesens.h" + + +namespace DM { + +MovesensMan::MovesensMan(DMEngine* vm) : _vm(vm) {} + + +}
\ No newline at end of file diff --git a/engines/dm/movesens.h b/engines/dm/movesens.h new file mode 100644 index 0000000000..e0f397df6d --- /dev/null +++ b/engines/dm/movesens.h @@ -0,0 +1,44 @@ +/* ScummVM - Graphic Adventure Engine +* +* ScummVM is the legal property of its developers, whose names +* are too numerous to list here. Please refer to the COPYRIGHT +* file distributed with this source distribution. +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License +* as published by the Free Software Foundation; either version 2 +* of the License, or (at your option) any later version. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program; if not, write to the Free Software +* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +* +*/ + +/* +* Based on the Reverse Engineering work of Christophe Fontanel, +* maintainer of the Dungeon Master Encyclopaedia (http://dmweb.free.fr/) +*/ + + +#ifndef DM_MOVESENS_H +#define DM_MOVESENS_H + +#include "dm.h" + +namespace DM { + +class MovesensMan { + DMEngine *_vm; +public: + explicit MovesensMan(DMEngine *vm); +}; + +} + +#endif |