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
28
namespace
Hollywood {
29
namespace
Runaway {
30
31
class
Scene9010
:
public
RunawayPresentationScene
{
32
public
:
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
45
private
:
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;
54
RunawayAnimation
_car;
55
Graphics::ManagedSurface
_background;
56
Common::Array<byte>
_parallax;
57
Common::Array<RunawaySequence::Command>
_commands;
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
Common::Array< byte >
Common::U32String
Definition:
ustr.h:57
Graphics::ManagedSurface
Definition:
managed_surface.h:51
Hollywood::Runaway::Scene9010
Definition:
scene9010.h:31
Hollywood::RunawayAnimation
Definition:
graphics.h:54
Hollywood::RunawayAudio
Definition:
audio.h:29
Hollywood::RunawayCredits
Definition:
presentation.h:69
Hollywood::RunawayInventory
Definition:
inventory.h:41
Hollywood::RunawayPresentationScene
Definition:
presentation_scene.h:30
Hollywood::RunawaySequence
Definition:
sequence.h:38
Hollywood::RunawayStrings
Definition:
strings.h:37
Hollywood::SceneTextStore
Definition:
scene_text_store.h:64
Common::Point
Definition:
rect.h:144
Hollywood::RunawaySaveState
Definition:
saveload.h:32
engines
hollywood
runaway
scene9010.h
Generated on Sun Nov 22 2026 09:25:26 for ScummVM API documentation by
1.9.4