ScummVM API documentation
scene7010.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_MONSTERS_SCENES_PLAYABLE_SCENE7010_H
23#define HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE7010_H
24
25#include "hollywood/monsters/gameplay/dialogue_menu.h"
26#include "hollywood/monsters/scenes/playable/playable_scene.h"
27
28namespace Hollywood {
29
30class HollywoodEngine;
31
32// Coordinates Sue, Hannover, the doghouse, and the persistent note overlay.
33class Scene7010 : public PlayableScene {
34public:
36
37private:
38 void initializeCustomPreviewState() override;
39 void drawCustomActorForegroundComposite(int activeWorldX, int activeWorldY,
40 byte actorDrawOrderMode) override;
41 void drawCustomForegroundComposite(int activeWorldX, int activeWorldY) override;
42 bool shouldDrawSecondaryActorInPlayableComposite() const override;
43 void runCustomEntrySequence() override;
44 void prepareCustomGameplayLoop() override;
45 void advanceCustomGameplayLoop(uint32 delta) override;
46 void advanceAmbientAudio(uint32 delta) override;
47 bool dispatchCustomSceneAction(uint16 handlerId) override;
48 bool adjustCustomWalkTargetToFloorMask(int &targetX, int &targetY) const override;
49 bool customizeRouteSegment(byte currentRegion, byte nextRegion, const ActorPathBuildState &state,
50 const ScenePoint &boundary, int &requestedFacing, bool &restoredStepDeltas) override;
51 bool customizeRouteFinal(byte currentRegion, byte targetRegion, const ActorPathBuildState &state,
52 int targetX, int targetY, int &requestedFacing, bool &restoredStepDeltas) override;
53 bool applyCustomSceneStateToHotspotsAndPatches(byte selector) override;
54 bool shouldAnimatePrimarySpeechLine() const override;
55 void setPrimaryLeftSpeechFrame(byte frameIndex) override;
56 void advanceFullscreenAnimation(uint32 delta) override;
57 AmbientAudioProfile ambientAudioProfile() const override;
58 void runSueEntryPath(int startX, int startY, int targetX, int targetY);
59 void runJuniorSpeech();
60 void advanceChunk8Cycle();
61 void advanceChunk10IdleFrames();
62 void handleActionSlot00TransitionToG03();
63 void handleActionSlot01SecondarySpeech();
64 void handleActionSlot02SecondarySpeech();
65 void handleActionSlot03DialogueSequence();
66 bool runHannoverInterception();
67 void handleActionSlot04Item06Speech();
68 void handleActionSlot06DoghouseSequence();
69 void handleActionSlot07DialogueAndReturn();
70 void handleActionSlot08CommonSpeech();
71 void runHannoverDialogueMenuRow98();
72 void initializeHannoverDialogueRecords(Common::Array<DialogueChoiceRecord> &records) const;
73 void setHannoverDialogueRecord(Common::Array<DialogueChoiceRecord> &records, uint index,
74 byte enabled, byte nextNodeIndex, byte transitionMode, byte playerTextRowId,
75 byte responseFrameIndex, byte disableAfterUse) const;
76 bool applyHannoverDialogueTransition(const DialogueChoiceRecord &record, byte &depthIndex, byte &nodeIndex) const;
77 void beginHannoverPrimarySpeechLine(byte frameIndex, byte poseVariant);
78 void runChunk8RevealSequence();
79 void runChunk8HideSequence();
80 bool runChunk11FrameRange(byte startFrame, byte endFrame);
81 void runChunk11MidFrames();
82 void runChunk11ReturnFrames();
83 void runChunk11ExtendedFrames();
84 void runChunk13Item09PickupOverlaySequence();
85 void runChunk14FrameRange(byte startFrame, byte endFrame, bool restoreChunk11AtEnd);
86 void runDoghouseDepartureSequence();
87 void runDoghouseSpeechLine(byte frameIndex);
88 void runDogCloseupSequence();
89 void runDialogueOverlayFrames(byte startFrame, byte endFrame, byte finalMode);
90 void updateG01AmbientAudioAndMusicCues(uint32 delta);
91 void setDialogueOverlayMode(byte mode, byte frameIndex);
92 void setChunk8Frame(byte frameIndex);
93 byte chunk8Frame() const;
94 void setChunk9Frame(byte frameIndex);
95 void updateChunk9Visibility();
96 void setChunk11Visible(bool visible);
97 void setChunk11Frame(byte frameIndex);
98 void setChunk14Visible(bool visible);
99
100 byte _dialogueOverlayMode;
101 bool _chunk8SpecialSequenceActive;
102 bool _returnEntryPathPending;
103 AlternatingRandomFramePair _chunk10IdlePairA;
104 AlternatingRandomFramePair _chunk10IdlePairB;
105 TimedAnimationChannel _chunk8Animation;
106 TimedAnimationChannel _chunk10Animation;
107 uint _hannoverSpeechTrack;
108 uint _doghouseSpeechTrack;
109 uint _dialogueOverlayTrack;
110};
111
112} // End of namespace Hollywood
113
114#endif
Definition: array.h:52
Definition: hollywood.h:47
Definition: playable_scene.h:84
Definition: scene7010.h:33
Definition: actor_types.h:59
Definition: animation_channels.h:357
Definition: ambient_audio.h:44
Definition: dialogue_menu.h:33
Definition: scene_data.h:29
Definition: animation_channels.h:34