LILLIPUT: Refactor to use Engine debugger

This commit is contained in:
Paul Gilbert 2020-02-08 22:05:12 -08:00 committed by Filippos Karapetis
parent d3e88f72e5
commit afa27aa7c5
2 changed files with 1 additions and 9 deletions

View File

@ -116,7 +116,7 @@ LilliputEngine::LilliputEngine(OSystem *syst, const LilliputGameDescription *gd)
DebugMan.addDebugChannel(kDebugEngineTBC, "EngineTBC", "Engine debug level");
DebugMan.addDebugChannel(kDebugScriptTBC, "ScriptTBC", "Script debug level");
_console = new LilliputConsole(this);
setDebugger(new LilliputConsole(this));
_rnd = 0;
_mousePos = Common::Point(0, 0);
_oldMousePos = Common::Point(0, 0);
@ -263,16 +263,11 @@ LilliputEngine::LilliputEngine(OSystem *syst, const LilliputGameDescription *gd)
LilliputEngine::~LilliputEngine() {
DebugMan.clearAllDebugChannels();
delete _console;
delete _soundHandler;
delete _scriptHandler;
delete _rnd;
}
GUI::Debugger *LilliputEngine::getDebugger() {
return _console;
}
void LilliputEngine::update() {
// update every 20 ms.
int currentTime = _system->getMillis();

View File

@ -94,8 +94,6 @@ public:
OSystem *_system;
GUI::Debugger *getDebugger() override;
Common::RandomSource *_rnd;
LilliputScript *_scriptHandler;
LilliputSound *_soundHandler;
@ -372,7 +370,6 @@ protected:
private:
static LilliputEngine *s_Engine;
LilliputConsole *_console;
GameType _gameType;
Common::Platform _platform;