AVALANCHE: Instantiate finished classes in the engine.

This commit is contained in:
uruk 2013-06-28 12:27:14 +02:00
parent 8398250387
commit dd40c1896b
2 changed files with 9 additions and 0 deletions

View File

@ -46,6 +46,9 @@ namespace Avalanche {
_system = syst; _system = syst;
_console = new AvalancheConsole(this); _console = new AvalancheConsole(this);
_rnd = 0; _rnd = 0;
_gyro.setParent(this);
_enhanced.setParent(this);
} }
AvalancheEngine::~AvalancheEngine() { AvalancheEngine::~AvalancheEngine() {

View File

@ -29,6 +29,8 @@
#define AVALANCHE_H #define AVALANCHE_H
#include "avalanche/console.h" #include "avalanche/console.h"
#include "avalanche/gyro2.h"
#include "avalanche/enhanced2.h"
#include "engines/engine.h" #include "engines/engine.h"
#include "engines/advancedDetector.h" #include "engines/advancedDetector.h"
@ -45,6 +47,10 @@ static const int kSavegameVersion = 1;
class AvalancheEngine : public Engine { class AvalancheEngine : public Engine {
public: public:
Gyro _gyro;
Enhanced _enhanced;
AvalancheEngine(OSystem *syst, const AvalancheGameDescription *gd); AvalancheEngine(OSystem *syst, const AvalancheGameDescription *gd);
~AvalancheEngine(); ~AvalancheEngine();