diff options
author | uruk | 2013-06-28 12:27:14 +0200 |
---|---|---|
committer | uruk | 2013-06-28 12:27:14 +0200 |
commit | dd40c1896b72e5ed337afbb143184028cc287dda (patch) | |
tree | 65fa28348abcf20d283ce037ad506b64cfdd1ed1 | |
parent | 83982503871a042aa113102449f7a6cc8d77aa6c (diff) | |
download | scummvm-rg350-dd40c1896b72e5ed337afbb143184028cc287dda.tar.gz scummvm-rg350-dd40c1896b72e5ed337afbb143184028cc287dda.tar.bz2 scummvm-rg350-dd40c1896b72e5ed337afbb143184028cc287dda.zip |
AVALANCHE: Instantiate finished classes in the engine.
-rw-r--r-- | engines/avalanche/avalanche.cpp | 3 | ||||
-rw-r--r-- | engines/avalanche/avalanche.h | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/engines/avalanche/avalanche.cpp b/engines/avalanche/avalanche.cpp index b9b1b0f581..a230cf059f 100644 --- a/engines/avalanche/avalanche.cpp +++ b/engines/avalanche/avalanche.cpp @@ -46,6 +46,9 @@ namespace Avalanche { _system = syst; _console = new AvalancheConsole(this); _rnd = 0; + + _gyro.setParent(this); + _enhanced.setParent(this); } AvalancheEngine::~AvalancheEngine() { diff --git a/engines/avalanche/avalanche.h b/engines/avalanche/avalanche.h index fa87d8b60a..190849e50c 100644 --- a/engines/avalanche/avalanche.h +++ b/engines/avalanche/avalanche.h @@ -29,6 +29,8 @@ #define AVALANCHE_H #include "avalanche/console.h" +#include "avalanche/gyro2.h" +#include "avalanche/enhanced2.h" #include "engines/engine.h" #include "engines/advancedDetector.h" @@ -45,6 +47,10 @@ static const int kSavegameVersion = 1; class AvalancheEngine : public Engine { public: + Gyro _gyro; + Enhanced _enhanced; + + AvalancheEngine(OSystem *syst, const AvalancheGameDescription *gd); ~AvalancheEngine(); |