ScummVM API documentation
scene9030.h
1/* ScummVM - Graphic Adventure Engine
2 *
3 * ScummVM is the legal property of its developers, whose names
4 * are too numerous to list here. Please refer to the COPYRIGHT
5 * file distributed with this source distribution.
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published by
9 * the Free Software Foundation, either version 3 of the License, or
10 * (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21
22#ifndef HOLLYWOOD_RUNAWAY_SCENE9030_H
23#define HOLLYWOOD_RUNAWAY_SCENE9030_H
24
25#include "hollywood/runaway/presentation_scene.h"
26
27namespace Hollywood {
28namespace Runaway {
29
31public:
32 Scene9030(RunawayAudio &audio, RunawayInventory &inventory, const RunawayStrings &strings, RunawayGameType game);
33 bool load(uint16 entryScene) override;
34 void start(uint32 now) override;
35 void resume() override;
36 void update(uint32 now, int scrollDirection, bool inventoryOpen) override;
37 void draw() override;
38 const Common::U32String &subtitle() const override { return _speech.subtitle(); }
39 void skipSpeech() override;
40 void skipVideo() override;
41 bool escaped() const override { return _step == kFinished; }
42 void captureState(RunawaySaveState &state) const override;
43 bool restoreState(const RunawaySaveState &state, uint32 now, bool entering = false) override;
44
45private:
46 enum Step {
47 kExplanation, kCloseupExit, kFadeOut, kBeachFadeIn, kExclamation, kPause,
48 kGinaRequest, kReply, kTurnBack, kFarewell, kLastWords, kMusicTail, kFinished
49 };
50 void enter(Step step);
51 void say(byte variation);
52 void nextLine();
53 void updateBeach();
54
55 RunawayAudio &_audio;
57 RunawaySpeech _speech;
58 SceneTextStore _text;
59 SceneSpeechCue _cue;
60 RunawayAnimation _layers[11];
61 Graphics::ManagedSurface _background;
62 Step _step = kExplanation;
63 uint32 _now = 0, _started = 0, _beachStarted = 0, _ginaTick = 0, _ambientTick = 0;
64 uint _frame = 0, _cameraY = 0;
65 byte _line = 0, _request = 0, _ginaStep = 0;
66};
67
68} // End of namespace Runaway
69} // End of namespace Hollywood
70
71#endif // HOLLYWOOD_RUNAWAY_SCENE9030_H
Definition: random.h:44
Definition: ustr.h:57
Definition: managed_surface.h:51
Definition: scene9030.h:30
Definition: graphics.h:54
Definition: audio.h:29
Definition: inventory.h:41
Definition: presentation_scene.h:30
Definition: speech.h:31
Definition: strings.h:37
Definition: scene_text_store.h:64
Definition: saveload.h:32
Definition: scene_text_store.h:37