ScummVM API documentation
scene1070.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_SCENE1070_H
23#define HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE1070_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
32class Scene1070 : public PlayableScene {
33public:
35
36private:
37 void initializeCustomPreviewState() override;
38 void drawCustomForegroundComposite(int activeWorldX, int activeWorldY) override;
39 void runCustomEntrySequence() override;
40 void prepareCustomGameplayLoop() override;
41 void advanceCustomGameplayLoop(uint32 delta) override;
42 bool dispatchCustomSceneAction(uint16 handlerId) override;
43 bool applyCustomSceneStateToHotspotsAndPatches(byte selector) override;
44 bool shouldAnimatePrimarySpeechLine() const override;
45 byte primarySpeechAnimationBaseFrame(byte animationGroup) const override;
46 void setPrimarySpeechAnimationFrame(byte animationGroup, byte frameIndex) override;
47 AmbientAudioProfile ambientAudioProfile() const override;
48
49 void resetAnimationLayers();
50 void advanceBackLayer(uint32 delta);
51 void advanceCharacterAmbientAudio();
52 void advanceSpencerAmbientTrigger(uint32 delta);
53 void advanceGhostLayer(uint32 delta);
54 void advanceSpencerLayer(uint32 delta);
55 void updateSpiritBlockingHotspot(bool blocked);
56 void settleCharacterAnimations();
57 bool hasActiveCharacterAnimation() const;
58 void waitForGhostMode(byte mode);
59 void waitForSpencerMode(byte mode);
60 void beginSpencerPrimarySpeechLine(byte frameIndex);
61 void beginQuasimodoPrimarySpeechLine(byte frameIndex);
62 void drawForegroundBlocks(int activeWorldX, int activeWorldY);
63 void replaceColorMapItem(byte sourceItem, byte destinationItem);
64 void copyStageSmallRow(byte sourceRow, byte destinationRow);
65 void runSpencerConversation();
66 void runQuasimodoConversation();
67 void finishSpencerConversation();
68 void finishQuasimodoConversation();
69 void initializeSpencerDialogueRecords(Common::Array<DialogueChoiceRecord> &records) const;
70 void initializeQuasimodoDialogueRecords(Common::Array<DialogueChoiceRecord> &records) const;
71 void setDialogueRecord(Common::Array<DialogueChoiceRecord> &records, uint index,
72 byte enabled, byte nextNodeIndex, byte transitionMode, byte playerTextRowId,
73 byte responseFrameIndex, byte disableAfterUse) const;
74 void handleSpencerDialogueEffect(byte effect, Common::Array<DialogueChoiceRecord> &records,
75 uint recordIndex);
76 void runSpencerTravelUnlockEffect();
77 void handleMicrophonePickup();
78 void handleMicStandPickup();
79 void handleBallChainPickup();
80
81 TimedAnimationChannel _backLayerChannel;
82 TimedAnimationChannel _ghostIdleChannel;
83 TimedAnimationChannel _ghostSequenceChannel;
84 TimedAnimationChannel _ghostSpecialChannel;
85 TimedAnimationChannel _spencerAmbientChannel;
86 TimedAnimationChannel _spencerIdleChannel;
87 TimedAnimationChannel _spencerLongChannel;
88 TimedAnimationChannel _spencerTransitionChannel;
89 byte _backLayerResumeFrame;
90 byte _ghostMode;
91 byte _spencerMode;
92 byte _spencerAmbientState;
93 byte _lastGhostAmbientSound;
94 byte _lastSpencerAmbientSound;
95 bool _suppressRandomLayerStarts;
96};
97
98} // End of namespace Hollywood
99
100#endif // HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE1070_H
Definition: array.h:52
Definition: hollywood.h:47
Definition: playable_scene.h:84
Definition: scene1070.h:32
Definition: ambient_audio.h:44
Definition: animation_channels.h:34