AVALANCHE: Repair class Avalot.

This commit is contained in:
uruk 2013-06-29 10:20:22 +02:00
parent c9baa8f456
commit 17fe756073
4 changed files with 22 additions and 6 deletions

View File

@ -47,6 +47,7 @@ namespace Avalanche {
_console = new AvalancheConsole(this);
_rnd = 0;
_avalot.setParent(this);
_gyro.setParent(this);
_enhanced.setParent(this);
_logger.setParent(this);

View File

@ -29,6 +29,8 @@
#define AVALANCHE_H
#include "avalanche/console.h"
#include "avalanche/avalot.h"
#include "avalanche/gyro2.h"
#include "avalanche/enhanced2.h"
#include "avalanche/logger2.h"
@ -57,6 +59,7 @@ static const int kSavegameVersion = 1;
class AvalancheEngine : public Engine {
public:
Avalot _avalot;
Gyro _gyro;
Enhanced _enhanced;
Logger _logger;

View File

@ -28,6 +28,7 @@
#include "common/str.h"
#include "common/textconsole.h"
#include "avalanche/avalanche.h"
#include "avalanche/avalot.h"
#include "avalanche/gyro2.h"
@ -37,9 +38,9 @@ namespace Avalanche {
int16 gd, gm;
checkbreak = false;
Gyro::visible = Gyro::m_no;
Gyro::to_do = 0;
Gyro::lmo = false;
_vm->_gyro.visible = _vm->_gyro.m_no;
_vm->_gyro.to_do = 0;
_vm->_gyro.lmo = false;
// resetscroll(); Needs scrolls "unit" to make it work.
warning("STUB: Avalot::Avalot()");
@ -47,6 +48,11 @@ namespace Avalanche {
}
void Avalot::setParent(AvalancheEngine *vm) {
_vm = vm;
}
void Avalot::run(Common::String arg) {
warning("STUB: Avalot::run(%s)", arg.c_str());
}

View File

@ -31,15 +31,21 @@
#include "common/system.h"
namespace Avalanche {
class AvalancheEngine;
class Avalot {
private:
bool checkbreak; // Originally located in avalot9.map
public:
Avalot();
void setParent(AvalancheEngine *vm);
void run(Common::String arg);
private:
AvalancheEngine *_vm;
bool checkbreak; // Originally located in avalot9.map
};
} // End of namespace Avalanche