MUTATIONOFJB: Continue implementation of if/else script commands.

This commit is contained in:
Ľubomír Remák 2018-02-25 04:14:32 +01:00 committed by Eugene Sandulenko
parent f7d5a825a0
commit 3672ea5572
14 changed files with 330 additions and 16 deletions

View file

@ -20,10 +20,20 @@
*
*/
#include "seqcommand.h"
#include "mutationofjb/commands/seqcommand.h"
#include "common/translation.h"
namespace MutationOfJB {
void SeqCommandParser::transition(ScriptParseContext &, Command * oldCommand, Command * newCommand) {
if (!oldCommand || !newCommand) {
warning(_("Unexpected empty command in transition"));
return;
}
static_cast<SeqCommand *>(oldCommand)->setNextCommand(newCommand);
}
void SeqCommand::setNextCommand(Command *nextCommand)
{
_nextCommand = nextCommand;