forked from scummvm/scummvm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcutscene.h
80 lines (67 loc) · 1.91 KB
/
cutscene.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
/* 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 3 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, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef DARKSEED_CUTSCENE_H
#define DARKSEED_CUTSCENE_H
#include "darkseed/pal.h"
#include "darkseed/titlefont.h"
#include "darkseed/morph.h"
namespace Darkseed {
class Cutscene {
char _cutsceneId = 0;
uint16 _movieStep = 9999;
TitleFont *_titleFont = nullptr;
Pal _palette;
Anm _animation;
int _animIdx = 0;
int _animCount = 0;
int _animDelayCount = 0;
int _animDirection = 0;
uint32 _startTime = 0;
Morph *_morph = nullptr;
int _valvesIdx = 0;
int _faceIdx = 0;
public:
Cutscene() {}
virtual ~Cutscene();
void play(char cutsceneId);
bool isPlaying() const {
return _movieStep != 9999;
}
void update();
private:
bool introScene();
bool embryoInsertedScene();
bool shipLaunchScene();
bool alienBornScene();
bool babyDollScene();
bool bookScene();
bool nightmare2Scene();
bool nightmare3Scene();
void runAnim(int direction = 1);
bool stepAnim(int drawMode = 1);
bool stepValveAnim(bool doFaceAnim);
void putHouse();
void registTime();
bool waitTime(int16 duration) const;
void freeMorph();
};
} // namespace Darkseed
#endif // DARKSEED_CUTSCENE_H