ScummVM API documentation
scene2020.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_SCENE2020_H
23#define HOLLYWOOD_RUNAWAY_SCENE2020_H
24
25#include "hollywood/runaway/scene.h"
26
27namespace Hollywood {
28namespace Runaway {
29
31public:
32 Scene2020(RunawayAudio &audio, RunawayInventory &inventory, const RunawayStrings &strings, RunawayGameType game);
33 void start(uint32 now) override;
34 bool busy() const override;
35 void setCameraX(int x) override;
36
37private:
38 enum HospitalFilm { kGinaStoryFilm, kLedgeFilm, kDecoyFilm, kAmbushFilm, kEscapeFilm };
39
40 bool loadCustomResources() override;
41 bool applyCustomBackgroundPatches() override;
42 void applyCustomHotspotState() override;
43 ActionResult dispatchCustomSceneAction(uint16 action) override;
44 byte defaultItemAction(byte item, byte id) const override;
45 float actorHeight() const override;
46 byte initialActorFacing() const override;
47 void resumeAmbientAudio(bool entering) override;
48 void runCustomEntrySequence() override;
49 void advanceCustomGameplayLoop(uint32 delta) override;
50 void adaptGogFilm(const RunawaySequence::Command *commands);
51 void startHospitalFilm(HospitalFilm film);
52 void finishCustomFilm() override;
53 void finishCustomAnimation(uint16 action) override;
54 void handleAnimationFrameHook() override;
55 Common::U32String hotspotName(byte id) const override;
56 void drawCustomBackgroundComposite(Graphics::ManagedSurface &viewport) override;
57 void drawCustomForegroundComposite(Graphics::ManagedSurface &viewport) override;
58 void drawRoomComposite(Graphics::ManagedSurface &viewport, bool foreground);
59
60 RunawayAnimation _ginaAnimation, _chartAnimation, _chartOverlay;
61 Common::Array<byte> _monitorPatches[2];
63 HospitalFilm _hospitalFilm = kGinaStoryFilm;
64 byte _entryStep = 0, _ginaFrame = 0;
65 int _ginaDirection = 1;
66 uint32 _ginaTick = 0;
67};
68
69} // End of namespace Runaway
70} // End of namespace Hollywood
71
72#endif // HOLLYWOOD_RUNAWAY_SCENE2020_H
Definition: ustr.h:57
Definition: managed_surface.h:51
Definition: scene2020.h:30
Definition: graphics.h:54
Definition: audio.h:29
Definition: inventory.h:41
Definition: scene.h:100
Definition: strings.h:37
Definition: sequence.h:58