mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 17:46:22 +00:00
AVALANCHE: Instantiate finished classes in the engine.
This commit is contained in:
parent
8398250387
commit
dd40c1896b
@ -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() {
|
||||||
|
@ -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();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user