ScummVM API documentation
scene7040.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_SCENE7040_H
23#define HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE7040_H
24
25#include "hollywood/monsters/scenes/playable/playable_scene.h"
26
27namespace Hollywood {
28
29class HollywoodEngine;
30
37class Scene7040 : public PlayableScene {
38public:
40
41private:
42 int alternatePaletteResourceChunkIndex() const override;
43 bool isAlternatePaletteResourceActive() const override;
44 bool shouldConvertSavedFramebufferFF() const override;
45 void runExitSideEffectsAfterLoop() override;
46 void initializeCustomPreviewState() override;
47 void drawCustomComposite(bool drawActiveActor, byte activeFacing, byte activeCel, int activeWorldX, int activeWorldY,
48 bool drawSecondaryActor, byte secondaryFacing, byte secondaryFrame, int secondaryWorldX, int secondaryWorldY,
49 byte actorDrawOrderMode) override;
50 void runCustomEntrySequence() override;
51 void prepareCustomGameplayLoop() override;
52 void advanceCustomGameplayLoop(uint32 delta) override;
53 void advancePrimarySpeechAnimation(uint32 delta) override;
54 bool customizeRouteSegment(byte currentRegion, byte nextRegion, const ActorPathBuildState &state,
55 const ScenePoint &boundary, int &requestedFacing, bool &restoredStepDeltas) override;
56 bool customizeRouteFinal(byte currentRegion, byte targetRegion, const ActorPathBuildState &state,
57 int targetX, int targetY, int &requestedFacing, bool &restoredStepDeltas) override;
58 bool applyCustomSceneStateToHotspotsAndPatches(byte selector) override;
59 bool dispatchCustomSceneAction(uint16 handlerId) override;
60 byte primarySpeechAnimationBaseFrame(byte animationGroup) const override;
61 void setPrimarySpeechAnimationFrame(byte animationGroup, byte frameIndex) override;
62 void primarySpeechAnimationStarted(byte animationGroup, byte baseFrame) override;
63 void primarySpeechAnimationRestored(byte animationGroup, byte baseFrame) override;
64
65 void runJosephGuestListGreeting();
66 void waitPreItemIdleSequence();
67 bool shouldAbortJosephGuestListGreeting();
68 void advanceChunk11PreItemIdleAnimation(uint32 delta);
69 void advanceChunk16PostItemAnimation(uint32 delta);
70 byte pickPrimarySpeechFrameExcluding(byte frameCount, byte previousFrame);
71 void handleActionSlot00ReturnToG03();
72 void handleActionSlot01ProgressSpeech();
73 void handleActionSlot02MajorHotspotAction();
74 void handleActionSlot03TransitionToState7060();
75 void handleActionSlot05ExitProgressSpeech();
76 void handleActionSlot06TransitionToG05();
77 void handleActionSlot09PickupItem0FThenExit();
78 void handleActionSlot10CommonSpeech();
79 void handleActionHandler312ProgressSpeech();
80 void handleActionHandler313ConversationGate();
81 void handleActionHandler314FrankensteinNoteSpeech();
82 void handleActionHandler315PickupItem0C();
83 void runDialogueMenuRow98();
84 void initializeDialogueRecords(Common::Array<DialogueChoiceRecord> &records) const;
85 void runMajorHotspotFrankensteinBranch();
86 void runMajorHotspotReturnPath(byte finalFacing);
87 void runChunk11Range(byte firstFrame, byte endFrame);
88 void runChunk14ActionRange(byte firstFrame, byte endFrame);
89 void runChunk14AltRange(uint chunkIndex, byte firstFrame, byte endFrame);
90 void configureAnimationLayers();
91 void resetTransientAnimationLayers();
92 void syncAnimationLayerFrames();
93 void setChunk12OverlayVisible(bool visible);
94 void setChunk12OverlayFrame(byte frameIndex);
95 void setChunk14ActionVisible(bool visible);
96 void setChunk14ActionFrame(byte frameIndex);
97 void configureChunk14AltLayer(uint chunkIndex, bool visible);
98 void setChunk14AltVisible(bool visible);
99 void setChunk14AltFrame(byte frameIndex);
100 uint chunk14AltChunkIndex() const;
101
102 byte _postItemIdleState;
103 byte _primarySpeechLeadInTicks;
104 byte _primarySpeechLastMouthFrameOffset;
105 RandomIdleAnimation _preItemIdleAnimation;
106 TimedAnimationChannel _postItemAnimation;
107 TimedAnimationChannel _chunk17Animation;
108};
109
110} // End of namespace Hollywood
111
112#endif
Definition: array.h:52
Definition: hollywood.h:47
Definition: playable_scene.h:84
Definition: scene7040.h:37
Definition: actor_types.h:59
Definition: animation_channels.h:432
Definition: scene_data.h:29
Definition: animation_channels.h:34