ScummVM API documentation
scene9020.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_SCENE9020_H
23#define HOLLYWOOD_RUNAWAY_SCENE9020_H
24
25#include "hollywood/runaway/presentation_scene.h"
26#include "hollywood/runaway/scene2010.h"
27
28namespace Hollywood {
29namespace Runaway {
30
31// The bank robbery and the Sandrettis' revenge alternate films with Brian's narration.
33public:
34 Scene9020(RunawayAudio &audio, RunawayInventory &inventory, const RunawayStrings &strings, RunawayGameType game);
35 bool load(uint16 entryScene) override;
36 void start(uint32 now) override;
37 void resume() override;
38 void update(uint32 now, int scrollDirection, bool inventoryOpen) override;
39 void draw() override;
40 const Common::U32String &subtitle() const override;
41 void skipSpeech() override;
42 void skipVideo() override;
43 void captureState(RunawaySaveState &state) const override;
44 bool restoreState(const RunawaySaveState &state, uint32 now, bool entering = false) override;
45
46private:
47 enum Step { kBankNarration, kBankFilm, kGangstersNarration, kGangstersFilm, kDepartureNarration, kFinished };
48 bool narrating() const;
49 void startNarration(byte cue);
50 void startGangstersFilm();
51
52 RunawaySequence _sequence;
53 RunawayOpening _narrator;
54 SceneTextStore _text;
56 Step _step = kBankNarration;
57 uint32 _now = 0;
58};
59
60} // End of namespace Runaway
61} // End of namespace Hollywood
62
63#endif // HOLLYWOOD_RUNAWAY_SCENE9020_H
Definition: array.h:52
Definition: ustr.h:57
Definition: scene9020.h:32
Definition: audio.h:29
Definition: inventory.h:41
Definition: scene2010.h:36
Definition: presentation_scene.h:30
Definition: sequence.h:38
Definition: strings.h:37
Definition: scene_text_store.h:64
Definition: saveload.h:32