diff options
author | Ľubomír Remák | 2018-03-01 23:35:24 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-25 23:12:01 +0200 |
commit | bbd3750aeec2bdb91a8ab31eca8672c34ce61f83 (patch) | |
tree | 56412dfa75172d010c6335f6eb69ce45c289ec80 /engines/mutationofjb/mutationofjb.cpp | |
parent | 6d926ff55b2fccbf8e96495f88b3d4dda6e906d7 (diff) | |
download | scummvm-rg350-bbd3750aeec2bdb91a8ab31eca8672c34ce61f83.tar.gz scummvm-rg350-bbd3750aeec2bdb91a8ab31eca8672c34ce61f83.tar.bz2 scummvm-rg350-bbd3750aeec2bdb91a8ab31eca8672c34ce61f83.zip |
MUTATIONOFJB: Add change scene command, implement listsections and showsection debug console commands.
Diffstat (limited to 'engines/mutationofjb/mutationofjb.cpp')
-rw-r--r-- | engines/mutationofjb/mutationofjb.cpp | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/engines/mutationofjb/mutationofjb.cpp b/engines/mutationofjb/mutationofjb.cpp index 59553d4d34..3576fd5ca8 100644 --- a/engines/mutationofjb/mutationofjb.cpp +++ b/engines/mutationofjb/mutationofjb.cpp @@ -37,14 +37,17 @@ #include "mutationofjb/encryptedfile.h" #include "mutationofjb/util.h" #include "mutationofjb/script.h" +#include "mutationofjb/debug.h" namespace MutationOfJB { MutationOfJBEngine::MutationOfJBEngine(OSystem *syst) : Engine(syst), - _console(nullptr), - _room(nullptr), - _screen(nullptr) + _console(nullptr), + _room(nullptr), + _screen(nullptr), + _globalScript(nullptr), + _localScript(nullptr) { debug("MutationOfJBEngine::MutationOfJBEngine"); } @@ -99,8 +102,8 @@ Common::Error MutationOfJBEngine::run() { EncryptedFile globalScriptFile; globalScriptFile.open("global.atn"); - Script *script = new Script; - script->loadFromStream(globalScriptFile); + _globalScript = new Script; + _globalScript->loadFromStream(globalScriptFile); globalScriptFile.close(); while(!shouldQuit()) { @@ -141,4 +144,13 @@ Common::Error MutationOfJBEngine::run() { return Common::kNoError; } + +Script *MutationOfJBEngine::getGlobalScript() { + return _globalScript; +} + +Script *MutationOfJBEngine::getLocalScript() { + return _localScript; +} + } |