mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 09:36:21 +00:00
AVALANCHE: Repair class Avalot.
This commit is contained in:
parent
c9baa8f456
commit
17fe756073
@ -47,6 +47,7 @@ namespace Avalanche {
|
||||
_console = new AvalancheConsole(this);
|
||||
_rnd = 0;
|
||||
|
||||
_avalot.setParent(this);
|
||||
_gyro.setParent(this);
|
||||
_enhanced.setParent(this);
|
||||
_logger.setParent(this);
|
||||
|
@ -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;
|
||||
|
@ -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());
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user