ScummVM API documentation
scene6300.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_SCENE6300_H
23#define HOLLYWOOD_RUNAWAY_SCENE6300_H
24
25#include "hollywood/runaway/scene.h"
26
27namespace Hollywood {
28namespace Runaway {
29
31public:
32 Scene6300(RunawayAudio &audio, RunawayInventory &inventory, const RunawayStrings &strings, RunawayGameType game);
33
34protected:
35 bool loadWorkshopForeground();
36 void drawWorkshopForeground(Graphics::ManagedSurface &viewport);
37
38private:
39 const char *actionCaptionVariant(byte id, bool look, byte item) const override;
40 bool loadCustomResources() override;
41 bool applyCustomBackgroundPatches() override;
42 void applyCustomHotspotState() override;
43 void prepareCustomGameplayLoop() override;
44 void runCustomEntrySequence() override;
45 void resumeAmbientAudio(bool entering) override;
46 void advanceCustomGameplayLoop(uint32 delta) override;
47 bool drawCustomComposite(Graphics::ManagedSurface &viewport) override;
48 void drawCustomBackgroundComposite(Graphics::ManagedSurface &viewport) override;
49 void drawCustomForegroundComposite(Graphics::ManagedSurface &viewport) override;
50 bool roomAnimationInForeground() const override;
51 ActionResult dispatchCustomSceneAction(uint16 action) override;
52 void handleCustomDialogueChoice(byte effect) override;
53 void handleAnimationFrameHook() override;
54 void finishCustomConversation() override;
55 float actorHeight() const override;
56 void setupActorDepth(RunawayActor::RenderParams &params) const override;
57 void findWalkPath(Common::Point target) override;
58 bool adjustCustomWalkTargetToFloorMask(Common::Point &target) const override;
59 Common::U32String hotspotName(byte id) const override;
60 Common::Point sceneActionLookPosition(byte id) const override;
61 int8 customizeSceneActionApproach(byte id, bool use, byte item, int8 approach) const override;
62
63 void startKevinConversation(bool introduction);
64 void updateKevinTopics();
65 void setKevinPose(uint chunk, uint frames, byte frame, byte talkFrame);
66 void animateKevin(uint16 action, uint chunk, uint frames, uint first, uint last);
67 void advanceKevinIdle();
68 void drawKevin(Graphics::ManagedSurface &viewport);
69 void drawCatapult(Graphics::ManagedSurface &viewport);
70 void showCatapultImpact();
71
72 RunawayAnimation _kevinAnimation, _catapultAnimation, _statueAnimation, _torchAnimation, _sculptureAnimation;
73 RunawayAnimation _wrenchAnimation;
74 Common::Array<byte> _foregroundPatches[2];
75 Graphics::ManagedSurface _impactBackground;
76 uint32 _kevinTick = 0;
77 uint _kevinChunk = 0;
78 byte _kevinFrame = 0, _kevinTalkFrame = 106;
79 byte _kevinIdle = 0;
80 bool _kevinTalking = false, _kevinAnimating = false, _catapultImpact = false;
81};
82
83} // End of namespace Runaway
84} // End of namespace Hollywood
85
86#endif // HOLLYWOOD_RUNAWAY_SCENE6300_H
Definition: ustr.h:57
Definition: managed_surface.h:51
Definition: scene6300.h:30
Definition: graphics.h:54
Definition: audio.h:29
Definition: inventory.h:41
Definition: scene.h:100
Definition: strings.h:37
Definition: rect.h:144
Definition: graphics.h:76