2014-12-25 17:02:51 +11:00
|
|
|
/* ScummVM - Graphic Adventure Engine
|
|
|
|
*
|
|
|
|
* ScummVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the COPYRIGHT
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2016-08-27 15:19:25 -04:00
|
|
|
#ifndef XEEN_WORLDOFXEEN_CLOUDS_CUTSCENES_H
|
|
|
|
#define XEEN_WORLDOFXEEN_CLOUDS_CUTSCENES_H
|
2014-12-25 17:02:51 +11:00
|
|
|
|
2016-09-21 07:26:24 -04:00
|
|
|
#include "xeen/cutscenes.h"
|
2018-03-10 20:12:25 -05:00
|
|
|
#include "xeen/subtitles.h"
|
2015-11-17 21:08:07 -05:00
|
|
|
#include "xeen/xeen.h"
|
2014-12-25 17:02:51 +11:00
|
|
|
|
|
|
|
namespace Xeen {
|
2016-09-22 18:36:30 -04:00
|
|
|
namespace WorldOfXeen {
|
2014-12-25 17:02:51 +11:00
|
|
|
|
2016-09-18 17:31:12 -04:00
|
|
|
class CloudsCutscenes : public Cutscenes {
|
2016-09-21 21:14:25 -04:00
|
|
|
private:
|
|
|
|
static const char *const _INTRO_VOCS[14];
|
|
|
|
static const int _INTRO_FRAMES_LOOKUP[14];
|
|
|
|
static const int _INTRO_FRAMES_VALS[8][32];
|
2016-09-21 21:50:08 -04:00
|
|
|
static const uint _INTRO_FRAMES_WAIT[8][32];
|
2016-09-24 08:42:43 -04:00
|
|
|
static const byte _DECODE_TABLE1[256];
|
|
|
|
static const byte _DECODE_TABLE2[256];
|
2018-02-07 20:28:08 -05:00
|
|
|
private:
|
2018-03-11 21:28:11 -04:00
|
|
|
Subtitles _subtitles;
|
2018-02-07 20:28:08 -05:00
|
|
|
SpriteResource _mirror, _mirrBack;
|
|
|
|
int _mergeX;
|
2016-09-24 08:42:43 -04:00
|
|
|
private:
|
|
|
|
void loadScreen(const Common::String &name);
|
2018-02-04 21:56:18 -05:00
|
|
|
|
2018-03-02 20:28:57 -05:00
|
|
|
/**
|
|
|
|
* Shows the Clouds of Xeen title screen
|
|
|
|
*/
|
|
|
|
bool showCloudsTitle();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Inner implementation of the the Clouds of Xeen intro sequence
|
|
|
|
*/
|
|
|
|
bool showCloudsIntroInner();
|
|
|
|
|
2018-02-04 21:56:18 -05:00
|
|
|
/**
|
2018-02-11 20:43:33 -05:00
|
|
|
* Shows part 1 of the Clouds of Xeen ending, with the castle being destroyed
|
2018-02-04 21:56:18 -05:00
|
|
|
*/
|
|
|
|
bool showCloudsEnding1();
|
|
|
|
|
|
|
|
/**
|
2018-02-11 20:43:33 -05:00
|
|
|
* Shows part 2 of the Clouds of Xeen ending, King Roland's throneroom
|
2018-02-04 21:56:18 -05:00
|
|
|
*/
|
|
|
|
bool showCloudsEnding2();
|
2018-02-06 09:12:51 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Shows part 3 of the Clouds of Xeen ending, which shows a display
|
|
|
|
* of the game's monsters
|
|
|
|
*/
|
|
|
|
bool showCloudsEnding3();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Shows part 4 of the Clouds of Xeen ending, the final score
|
|
|
|
*/
|
|
|
|
bool showCloudsEnding4(uint finalScore);
|
2018-02-06 21:43:50 -05:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Shows part 5 of the Clouds of Xeen ending, final king display
|
|
|
|
*/
|
|
|
|
bool showCloudsEnding5();
|
2014-12-25 17:02:51 +11:00
|
|
|
public:
|
2018-07-26 18:54:17 -07:00
|
|
|
CloudsCutscenes(XeenEngine *vm) : Cutscenes(vm), _mergeX(0) {}
|
2014-12-25 17:02:51 +11:00
|
|
|
|
2016-08-27 15:19:25 -04:00
|
|
|
/**
|
|
|
|
* Shows the Clouds of Xeen intro sequence
|
|
|
|
*/
|
|
|
|
bool showCloudsIntro();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Shows the Clouds of Xeen ending sequence
|
|
|
|
*/
|
2018-02-06 09:12:51 -05:00
|
|
|
void showCloudsEnding(uint finalScore);
|
2016-08-27 15:19:25 -04:00
|
|
|
};
|
2016-09-22 18:36:30 -04:00
|
|
|
|
|
|
|
} // End of namespace WorldOfXeen
|
2014-12-25 17:02:51 +11:00
|
|
|
} // End of namespace Xeen
|
|
|
|
|
2016-08-27 15:19:25 -04:00
|
|
|
#endif /* XEEN_WORLDOFXEEN_CLOUDS_CUTSCENES_H */
|