ScummVM API documentation
scene6070.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_SCENE6070_H
23#define HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE6070_H
24
25#include "hollywood/monsters/scenes/playable/playable_scene.h"
26
27namespace Hollywood {
28
29class HollywoodEngine;
30
31class Scene6070 : public PlayableScene {
32public:
34
35private:
36 int alternatePaletteResourceChunkIndex() const override;
37 bool isAlternatePaletteResourceActive() const override;
38 bool shouldLoadArenaChunk(uint index) const override;
39 void initializeCustomPreviewState() override;
40 void drawCustomForegroundComposite(int activeWorldX, int activeWorldY) override;
41 void runCustomEntrySequence() override;
42 bool shouldPresentPreviewBeforeEntrySequence() const override;
43 void prepareCustomGameplayLoop() override;
44 void advanceCustomGameplayLoop(uint32 delta) override;
45 bool dispatchCustomSceneAction(uint16 handlerId) override;
46 void prepareCustomActorPathRoute(int startX, int startY) override;
47 bool customizeRouteSegment(byte currentRegion, byte nextRegion,
48 const ActorPathBuildState &state, const ScenePoint &boundary,
49 int &requestedFacing, bool &restoredStepDeltas) override;
50 bool customizeRouteFinal(byte currentRegion, byte targetRegion,
51 const ActorPathBuildState &state, int targetX, int targetY,
52 int &requestedFacing, bool &restoredStepDeltas) override;
53 bool applyCustomSceneStateToHotspotsAndPatches(byte selector) override;
54 byte primarySpeechAnimationBaseFrame(byte animationGroup) const override;
55 uint32 primarySpeechAnimationFrameMillis(byte animationGroup) const override;
56 byte primarySpeechVolumePercent(byte animationGroup) const override;
57 void setPrimarySpeechAnimationFrame(byte animationGroup, byte frameIndex) override;
58 void primarySpeechAnimationRestored(byte animationGroup, byte baseFrame) override;
59 void runExitSideEffectsAfterLoop() override;
60 AmbientAudioProfile ambientAudioProfile() const override;
61
62 void resetSceneLayers();
63 void advanceSueIdle(uint32 delta);
64 void drawNormalForeground(int actorWorldX, int actorWorldY, byte actorDrawOrderMode);
65 void runArrivalCutscene();
66 void runState609Cutscene();
67 void runSueDialogue();
68 void initializeSueDialogueRecords(Common::Array<DialogueChoiceRecord> &records) const;
69 void runSueDiscovery();
70 void handleGiveItemToSue();
71 byte sueInventoryItemForRonItem(byte itemId) const;
72 bool runCurtainRevealFromBlack();
73 void runCurtainClearToBlack();
74 void rememberOriginalColorMap();
75 void replaceColorMapItemFromOriginal(byte sourceItem, byte destinationItem);
76 void rebuildSceneWalkableMask();
77
78 Common::Array<byte> _originalColorToItemMap;
79 TimedAnimationChannel _sueIdleChannel;
80 uint _state609PropTrack;
81 uint32 _sueSpeechTimerAccumulator;
82 byte _sueMode;
83 byte _completedSueSpeechCount;
84 byte _lastSueIdleSpeechFrame;
85 bool _manualSequenceActive;
86 bool _pendingRonRetort;
87 bool _state609PropAlternatePose;
88};
89
90} // End of namespace Hollywood
91
92#endif // HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE6070_H
Definition: array.h:52
Definition: hollywood.h:47
Definition: playable_scene.h:84
Definition: scene6070.h:31
Definition: actor_types.h:59
Definition: ambient_audio.h:44
Definition: scene_data.h:29
Definition: animation_channels.h:34