diff options
author | Ľubomír Remák | 2018-03-09 22:42:20 +0100 |
---|---|---|
committer | Eugene Sandulenko | 2018-08-25 23:12:01 +0200 |
commit | 5854d310eee2c4a6fc4d189009631d4042ce0df8 (patch) | |
tree | 8023c7933051afa020da7ded94908bf42e8cedf0 /engines/mutationofjb/commands | |
parent | d3e281e24cb0ce522dc943b2d2a6bdde0766b62c (diff) | |
download | scummvm-rg350-5854d310eee2c4a6fc4d189009631d4042ce0df8.tar.gz scummvm-rg350-5854d310eee2c4a6fc4d189009631d4042ce0df8.tar.bz2 scummvm-rg350-5854d310eee2c4a6fc4d189009631d4042ce0df8.zip |
MUTATIONOFJB: Fix some code formatting issues.
Diffstat (limited to 'engines/mutationofjb/commands')
-rw-r--r-- | engines/mutationofjb/commands/changecommand.h | 8 | ||||
-rw-r--r-- | engines/mutationofjb/commands/endblockcommand.cpp | 2 | ||||
-rw-r--r-- | engines/mutationofjb/commands/ifcommand.cpp | 4 | ||||
-rw-r--r-- | engines/mutationofjb/commands/seqcommand.cpp | 2 | ||||
-rw-r--r-- | engines/mutationofjb/commands/seqcommand.h | 3 |
5 files changed, 9 insertions, 10 deletions
diff --git a/engines/mutationofjb/commands/changecommand.h b/engines/mutationofjb/commands/changecommand.h index d590fa5518..af9a608e03 100644 --- a/engines/mutationofjb/commands/changecommand.h +++ b/engines/mutationofjb/commands/changecommand.h @@ -110,7 +110,7 @@ public: class ChangeDoorCommand : public ChangeCommand { public: - ChangeDoorCommand(uint8 sceneId, uint8 doorId, ChangeRegister reg, ChangeOperation op, const ChangeCommandValue& val) + ChangeDoorCommand(uint8 sceneId, uint8 doorId, ChangeRegister reg, ChangeOperation op, const ChangeCommandValue &val) : ChangeCommand(sceneId, doorId, reg, op, val) {} virtual ExecuteResult execute(GameData &gameData) override; @@ -119,7 +119,7 @@ public: class ChangeObjectCommand : public ChangeCommand { public: - ChangeObjectCommand(uint8 sceneId, uint8 objectId, ChangeRegister reg, ChangeOperation op, const ChangeCommandValue& val) + ChangeObjectCommand(uint8 sceneId, uint8 objectId, ChangeRegister reg, ChangeOperation op, const ChangeCommandValue &val) : ChangeCommand(sceneId, objectId, reg, op, val) {} virtual ExecuteResult execute(GameData &gameData) override; @@ -128,7 +128,7 @@ public: class ChangeStaticCommand : public ChangeCommand { public: - ChangeStaticCommand(uint8 sceneId, uint8 staticId, ChangeRegister reg, ChangeOperation op, const ChangeCommandValue& val) + ChangeStaticCommand(uint8 sceneId, uint8 staticId, ChangeRegister reg, ChangeOperation op, const ChangeCommandValue &val) : ChangeCommand(sceneId, staticId, reg, op, val) {} virtual ExecuteResult execute(GameData &gameData) override; @@ -137,7 +137,7 @@ public: class ChangeSceneCommand : public ChangeCommand { public: - ChangeSceneCommand(uint8 sceneId, uint8 staticId, ChangeRegister reg, ChangeOperation op, const ChangeCommandValue& val) + ChangeSceneCommand(uint8 sceneId, uint8 staticId, ChangeRegister reg, ChangeOperation op, const ChangeCommandValue &val) : ChangeCommand(sceneId, staticId, reg, op, val) {} virtual ExecuteResult execute(GameData &gameData) override; diff --git a/engines/mutationofjb/commands/endblockcommand.cpp b/engines/mutationofjb/commands/endblockcommand.cpp index af9282f81c..2f1901ddce 100644 --- a/engines/mutationofjb/commands/endblockcommand.cpp +++ b/engines/mutationofjb/commands/endblockcommand.cpp @@ -28,7 +28,7 @@ namespace MutationOfJB { -bool EndBlockCommandParser::parse(const Common::String &line, ScriptParseContext &parseCtx, Command *& command) { +bool EndBlockCommandParser::parse(const Common::String &line, ScriptParseContext &parseCtx, Command *&command) { if (line.empty()) { return false; } diff --git a/engines/mutationofjb/commands/ifcommand.cpp b/engines/mutationofjb/commands/ifcommand.cpp index a2816c7edd..da8efc1846 100644 --- a/engines/mutationofjb/commands/ifcommand.cpp +++ b/engines/mutationofjb/commands/ifcommand.cpp @@ -94,12 +94,12 @@ IfCommand::IfCommand(uint8 sceneId, uint8 objectId, uint16 value, bool negative) {} Command::ExecuteResult IfCommand::execute(GameData &gameData) { - Scene* const scene = gameData.getScene(_sceneId); + Scene *const scene = gameData.getScene(_sceneId); if (!scene) { return Finished; } - Object* const object = scene->getObject(_objectId); + Object *const object = scene->getObject(_objectId); if (!object) { return Finished; } diff --git a/engines/mutationofjb/commands/seqcommand.cpp b/engines/mutationofjb/commands/seqcommand.cpp index 6c167e946a..03d9538145 100644 --- a/engines/mutationofjb/commands/seqcommand.cpp +++ b/engines/mutationofjb/commands/seqcommand.cpp @@ -25,7 +25,7 @@ namespace MutationOfJB { -void SeqCommandParser::transition(ScriptParseContext &, Command * oldCommand, Command * newCommand, CommandParser *) { +void SeqCommandParser::transition(ScriptParseContext &, Command *oldCommand, Command *newCommand, CommandParser *) { if (!oldCommand || !newCommand) { warning(_("Unexpected empty command in transition")); return; diff --git a/engines/mutationofjb/commands/seqcommand.h b/engines/mutationofjb/commands/seqcommand.h index 0fa30abaad..c3455cec89 100644 --- a/engines/mutationofjb/commands/seqcommand.h +++ b/engines/mutationofjb/commands/seqcommand.h @@ -28,8 +28,7 @@ namespace MutationOfJB { -class SeqCommandParser : public CommandParser -{ +class SeqCommandParser : public CommandParser { public: virtual void transition(ScriptParseContext &parseCtx, Command *oldCommand, Command *newCommand, CommandParser *newCommandParser) override; }; |