ScummVM API documentation
scene9010.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_SCENE9010_H
23#define HOLLYWOOD_RUNAWAY_SCENE9010_H
24
25#include "hollywood/runaway/presentation.h"
26#include "hollywood/runaway/presentation_scene.h"
27
28namespace Hollywood {
29namespace Runaway {
30
32public:
33 Scene9010(RunawayAudio &audio, RunawayInventory &inventory, const RunawayStrings &strings, RunawayGameType game);
34 bool load(uint16 entryScene) override;
35 void start(uint32 now) override;
36 void resume() override;
37 void update(uint32 now, int scrollDirection, bool inventoryOpen) override;
38 void draw() override;
39 const Common::U32String &subtitle() const override { return _sequence.subtitle(); }
40 void skipSpeech() override { _sequence.skipSpeech(); }
41 void skipVideo() override;
42 void captureState(RunawaySaveState &state) const override;
43 bool restoreState(const RunawaySaveState &state, uint32 now, bool entering = false) override;
44
45private:
46 enum Step { kArrival, kCarDoor, kFarewell, kDeparture, kFlight, kCredits, kMusicTail, kFinished };
47 void enter(Step step);
48 void startFarewell();
49
50 RunawayAudio &_audio;
51 RunawaySequence _sequence;
52 RunawayCredits _credits;
53 SceneTextStore _text;
55 Graphics::ManagedSurface _background;
56 Common::Array<byte> _parallax;
58 Step _step = kArrival;
59 uint32 _now = 0, _started = 0;
60 Common::Point _camera;
61 uint _frame = 0;
62 bool _gog = false;
63};
64
65} // End of namespace Runaway
66} // End of namespace Hollywood
67
68#endif // HOLLYWOOD_RUNAWAY_SCENE9010_H
Definition: ustr.h:57
Definition: managed_surface.h:51
Definition: scene9010.h:31
Definition: graphics.h:54
Definition: audio.h:29
Definition: presentation.h:69
Definition: inventory.h:41
Definition: presentation_scene.h:30
Definition: sequence.h:38
Definition: strings.h:37
Definition: scene_text_store.h:64
Definition: rect.h:144
Definition: saveload.h:32