diff options
author | Ľubomír Remák | 2018-10-31 19:19:41 +0100 |
---|---|---|
committer | Ľubomír Remák | 2018-10-31 19:19:41 +0100 |
commit | b87391338e1e91aa213247420e4bfcb7e09e984d (patch) | |
tree | f676f490be356a22884e83ba6a6cf62c55726286 /engines/mutationofjb/commands/conditionalcommand.h | |
parent | 3fb3f659f74e0682fe0ef3ab0dca7a47a0108a58 (diff) | |
download | scummvm-rg350-b87391338e1e91aa213247420e4bfcb7e09e984d.tar.gz scummvm-rg350-b87391338e1e91aa213247420e4bfcb7e09e984d.tar.bz2 scummvm-rg350-b87391338e1e91aa213247420e4bfcb7e09e984d.zip |
MUTATIONOFJB: Add basic support for RABLOAD command.
Also fix an issue with parsing IF command.
This commit makes the game completable (with many issues).
Diffstat (limited to 'engines/mutationofjb/commands/conditionalcommand.h')
-rw-r--r-- | engines/mutationofjb/commands/conditionalcommand.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/mutationofjb/commands/conditionalcommand.h b/engines/mutationofjb/commands/conditionalcommand.h index ea1a66afb0..1ca29b6bd6 100644 --- a/engines/mutationofjb/commands/conditionalcommand.h +++ b/engines/mutationofjb/commands/conditionalcommand.h @@ -25,16 +25,17 @@ #include "mutationofjb/commands/command.h" #include "common/scummsys.h" +#include "common/queue.h" namespace MutationOfJB { class ConditionalCommandParser : public CommandParser { public: - ConditionalCommandParser(bool firstHash = false) : _lastTag(0), _firstHash(firstHash) {} + ConditionalCommandParser(bool firstHash = false) : _firstHash(firstHash) {} virtual void transition(ScriptParseContext &parseCtx, Command *oldCommand, Command *newCommand, CommandParser *newCommandParser); virtual void finish(ScriptParseContext &parseCtx) override; protected: - char _lastTag; + Common::Queue<char> _tags; private: bool _firstHash; }; |