diff options
Diffstat (limited to 'engines/mutationofjb/commands/conditionalcommand.cpp')
-rw-r--r-- | engines/mutationofjb/commands/conditionalcommand.cpp | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/engines/mutationofjb/commands/conditionalcommand.cpp b/engines/mutationofjb/commands/conditionalcommand.cpp index 3118e6d8cb..13ea6741d1 100644 --- a/engines/mutationofjb/commands/conditionalcommand.cpp +++ b/engines/mutationofjb/commands/conditionalcommand.cpp @@ -31,6 +31,23 @@ ConditionalCommand::ConditionalCommand() : _cachedResult(false) {} + +Command *ConditionalCommand::getTrueCommand() const { + return _trueCommand; +} + +Command *ConditionalCommand::getFalseCommand() const { + return _falseCommand; +} + +void ConditionalCommand::setTrueCommand(Command *command) { + _trueCommand = command; +} + +void ConditionalCommand::setFalseCommand(Command *command) { + _falseCommand = command; +} + Command *ConditionalCommand::next() const { if (_cachedResult) { return _trueCommand; @@ -38,4 +55,4 @@ Command *ConditionalCommand::next() const { return _falseCommand; } } -}; +} |