aboutsummaryrefslogtreecommitdiff
path: root/engines/mutationofjb/commands/endblockcommand.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/mutationofjb/commands/endblockcommand.h')
-rw-r--r--engines/mutationofjb/commands/endblockcommand.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/engines/mutationofjb/commands/endblockcommand.h b/engines/mutationofjb/commands/endblockcommand.h
index 1ac636c6d5..51f799367c 100644
--- a/engines/mutationofjb/commands/endblockcommand.h
+++ b/engines/mutationofjb/commands/endblockcommand.h
@@ -25,19 +25,23 @@
#include "mutationofjb/commands/command.h"
#include "common/scummsys.h"
+#include "common/array.h"
namespace MutationOfJB {
+class ActionInfo;
+
class EndBlockCommandParser : public CommandParser {
public:
EndBlockCommandParser() : _elseFound(false), _ifTag(0) {}
virtual bool parse(const Common::String &line, ScriptParseContext &parseCtx, Command *&command);
- virtual void transition(ScriptParseContext &parseCtx, Command *oldCommand, Command *newCommand);
+ virtual void transition(ScriptParseContext &parseCtx, Command *oldCommand, Command *newCommand, CommandParser *newCommandParser);
private:
bool _elseFound;
char _ifTag;
+ Common::Array<ActionInfo*> _pendingActionInfos;
};
class EndBlockCommand : public Command {
@@ -46,6 +50,7 @@ public:
virtual ExecuteResult execute(GameData &gameData) override;
virtual Command *next() const override;
+ virtual Common::String debugString() const;
};
}