aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/xeen/worldofxeen/clouds_cutscenes.cpp19
-rw-r--r--engines/xeen/worldofxeen/clouds_cutscenes.h15
2 files changed, 28 insertions, 6 deletions
diff --git a/engines/xeen/worldofxeen/clouds_cutscenes.cpp b/engines/xeen/worldofxeen/clouds_cutscenes.cpp
index c58286449e..fb1440e865 100644
--- a/engines/xeen/worldofxeen/clouds_cutscenes.cpp
+++ b/engines/xeen/worldofxeen/clouds_cutscenes.cpp
@@ -33,6 +33,23 @@ namespace WorldOfXeen {
if (++cloudsCtr > 20) \
cloudsCtr = 1
+bool CloudsCutscenes::showCloudsIntro() {
+ FileManager &files = *g_vm->_files;
+ Screen &screen = *g_vm->_screen;
+ Sound &sound = *g_vm->_sound;
+
+ files._isDarkCc = false;
+ files.setGameCc(0);
+
+ bool seenIntro = showCloudsTitle() && showCloudsIntroInner();
+
+ sound.stopAllAudio();
+ sound.setMusicVolume(100);
+ screen.freePages();
+
+ return seenIntro;
+}
+
bool CloudsCutscenes::showCloudsTitle() {
EventsManager &events = *_vm->_events;
Screen &screen = *_vm->_screen;
@@ -90,7 +107,7 @@ bool CloudsCutscenes::showCloudsTitle() {
return true;
}
-bool CloudsCutscenes::showCloudsIntro() {
+bool CloudsCutscenes::showCloudsIntroInner() {
EventsManager &events = *_vm->_events;
Screen &screen = *_vm->_screen;
Sound &sound = *_vm->_sound;
diff --git a/engines/xeen/worldofxeen/clouds_cutscenes.h b/engines/xeen/worldofxeen/clouds_cutscenes.h
index fa7e35d194..afaf3beef5 100644
--- a/engines/xeen/worldofxeen/clouds_cutscenes.h
+++ b/engines/xeen/worldofxeen/clouds_cutscenes.h
@@ -44,6 +44,16 @@ private:
void loadScreen(const Common::String &name);
/**
+ * Shows the Clouds of Xeen title screen
+ */
+ bool showCloudsTitle();
+
+ /**
+ * Inner implementation of the the Clouds of Xeen intro sequence
+ */
+ bool showCloudsIntroInner();
+
+ /**
* Shows part 1 of the Clouds of Xeen ending, with the castle being destroyed
*/
bool showCloudsEnding1();
@@ -72,11 +82,6 @@ public:
CloudsCutscenes(XeenEngine *vm) : Cutscenes(vm) {}
/**
- * Shows the Clouds of Xeen title screen
- */
- bool showCloudsTitle();
-
- /**
* Shows the Clouds of Xeen intro sequence
*/
bool showCloudsIntro();