aboutsummaryrefslogtreecommitdiff
path: root/engines/wintermute/base/base_engine.h
diff options
context:
space:
mode:
authorEinar Johan Trøan Sømåen2012-07-29 02:59:14 +0200
committerEinar Johan Trøan Sømåen2012-07-29 03:41:07 +0200
commit482a5fb467e6694fb54c75f718563992657edf97 (patch)
tree6a88e4cc022c62276e53f3dceb8bbc7c5dabe18f /engines/wintermute/base/base_engine.h
parent9b5cf8f1bafd5aa0dba9194a8f04e58724652891 (diff)
downloadscummvm-rg350-482a5fb467e6694fb54c75f718563992657edf97.tar.gz
scummvm-rg350-482a5fb467e6694fb54c75f718563992657edf97.tar.bz2
scummvm-rg350-482a5fb467e6694fb54c75f718563992657edf97.zip
WINTERMUTE: Make the BaseEngine-singleton use Common::Singleton as super-class
Diffstat (limited to 'engines/wintermute/base/base_engine.h')
-rw-r--r--engines/wintermute/base/base_engine.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/engines/wintermute/base/base_engine.h b/engines/wintermute/base/base_engine.h
index 5782c012d8..d45d979f25 100644
--- a/engines/wintermute/base/base_engine.h
+++ b/engines/wintermute/base/base_engine.h
@@ -27,26 +27,23 @@
*/
#include "common/str.h"
+ #include "common/singleton.h"
namespace WinterMute {
class BaseFileManager;
class BaseRegistry;
class BaseGame;
-class BaseEngine {
- static BaseEngine *_instance;
- BaseEngine();
+class BaseEngine : public Common::Singleton<WinterMute::BaseEngine> {
void init();
BaseFileManager *_fileManager;
BaseRegistry *_registry;
Common::String _gameId;
BaseGame *_gameRef;
public:
+ BaseEngine();
~BaseEngine();
static void createInstance(const Common::String &gameid);
- static BaseEngine *getInstance();
- static void destroyInstance();
-
void setGameRef(BaseGame *gameRef) { _gameRef = gameRef; }
BaseGame *getGameRef() { return _gameRef; }