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
28
namespace
Hollywood {
29
namespace
Runaway {
30
31
// The bank robbery and the Sandrettis' revenge alternate films with Brian's narration.
32
class
Scene9020
:
public
RunawayPresentationScene
{
33
public
:
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
46
private
:
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;
55
Common::Array<RunawaySequence::Command>
_commands;
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
Common::Array
Definition:
array.h:52
Common::U32String
Definition:
ustr.h:57
Hollywood::Runaway::Scene9020
Definition:
scene9020.h:32
Hollywood::RunawayAudio
Definition:
audio.h:29
Hollywood::RunawayInventory
Definition:
inventory.h:41
Hollywood::RunawayOpening
Definition:
scene2010.h:36
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
Hollywood::RunawaySaveState
Definition:
saveload.h:32
engines
hollywood
runaway
scene9020.h
Generated on Sun Nov 22 2026 09:25:26 for ScummVM API documentation by
1.9.4