aboutsummaryrefslogtreecommitdiff
path: root/engines/gnap/scenes/scene54.cpp
diff options
context:
space:
mode:
authorStrangerke2016-04-22 00:26:09 +0200
committerEugene Sandulenko2016-05-10 09:54:21 +0200
commit861e5c10677d1493fc00542fec9ed1f0a030cb25 (patch)
tree24df33b2c931c19cbc306e88e405d4378bf61f0c /engines/gnap/scenes/scene54.cpp
parentc30810c933111857a914fc904e71051e861ec125 (diff)
downloadscummvm-rg350-861e5c10677d1493fc00542fec9ed1f0a030cb25.tar.gz
scummvm-rg350-861e5c10677d1493fc00542fec9ed1f0a030cb25.tar.bz2
scummvm-rg350-861e5c10677d1493fc00542fec9ed1f0a030cb25.zip
GNAP: Refactor scenes 16, 47, 48, 54 (cutscenes)
Diffstat (limited to 'engines/gnap/scenes/scene54.cpp')
-rw-r--r--engines/gnap/scenes/scene54.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/engines/gnap/scenes/scene54.cpp b/engines/gnap/scenes/scene54.cpp
index b6e4be9fcb..935a1668ee 100644
--- a/engines/gnap/scenes/scene54.cpp
+++ b/engines/gnap/scenes/scene54.cpp
@@ -23,10 +23,13 @@
#include "gnap/gnap.h"
#include "gnap/gamesys.h"
#include "gnap/resource.h"
+#include "gnap/scenes/scene54.h"
namespace Gnap {
-void GnapEngine::scene54_initCutscene1() {
+Scene541::Scene541(GnapEngine *vm) : CutScene(vm) {}
+
+int Scene541::init() {
_s99_sequenceIdArr[0] = 0x1BE;
_s99_sequenceIdArr[1] = 0x1BF;
_s99_sequenceIdArr[2] = 0x1BA;
@@ -36,7 +39,7 @@ void GnapEngine::scene54_initCutscene1() {
_s99_resourceIdArr[0] = 0x3C;
_s99_resourceIdArr[1] = 0x43;
_s99_resourceIdArr[2] = 0x44;
- if (isFlag(kGFPictureTaken))
+ if (_vm->isFlag(kGFPictureTaken))
_s99_resourceIdArr[3] = 0x47;
else
_s99_resourceIdArr[3] = 0x46;
@@ -52,9 +55,13 @@ void GnapEngine::scene54_initCutscene1() {
_s99_canSkip[3] = false;
_s99_canSkip[4] = false;
_s99_itemsCount = 5;
+
+ return -1;
}
-void GnapEngine::scene54_initCutscene2() {
+Scene542::Scene542(GnapEngine *vm) : CutScene(vm) {}
+
+int Scene542::init() {
_s99_sequenceIdArr[0] = 0x1C9;
_s99_sequenceIdArr[1] = 0x1C7;
_s99_sequenceIdArr[2] = 0x1CC;
@@ -122,6 +129,8 @@ void GnapEngine::scene54_initCutscene2() {
_s99_canSkip[14] = true;
_s99_canSkip[15] = false;
_s99_itemsCount = 16;
+
+ return -1;
}
} // End of namespace Gnap