ScummVM API documentation
scene5110.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_SCENE5110_H
23#define HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE5110_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 Scene5110 : public PlayableScene {
33public:
35
36private:
37 int replacementFillRunsResourceChunkIndex() const override;
38 int replacementPaletteMaskResourceChunkIndex() const override;
39 void initializeCustomPreviewState() override;
40 void drawCustomComposite(bool drawActiveActor, byte activeFacing, byte activeCel, int activeWorldX, int activeWorldY,
41 bool drawSecondaryActor, byte secondaryFacing, byte secondaryFrame, int secondaryWorldX, int secondaryWorldY,
42 byte actorDrawOrderMode) override;
43 void runCustomEntrySequence() override;
44 void advanceCustomGameplayLoop(uint32 delta) override;
45 bool dispatchCustomSceneAction(uint16 handlerId) override;
46 bool adjustCustomWalkTargetToFloorMask(int &targetX, int &targetY) const override;
47 bool customizeRouteSegment(byte currentRegion, byte nextRegion, const ActorPathBuildState &state,
48 const ScenePoint &boundary, int &requestedFacing, bool &restoredStepDeltas) override;
49 bool applyCustomSceneStateToHotspotsAndPatches(byte selector) override;
50 bool shouldConvertSavedFramebufferFF() const override;
51 void runExitSideEffectsAfterLoop() override;
52 AmbientAudioProfile ambientAudioProfile() const override;
53 byte primarySpeechAnimationBaseFrame(byte animationGroup) const override;
54 byte primarySpeechAnimationFrameCount(byte animationGroup) const override;
55 uint32 primarySpeechAnimationFrameMillis(byte animationGroup) const override;
56 void setPrimarySpeechAnimationFrame(byte animationGroup, byte frameIndex) override;
57 void primarySpeechAnimationStarted(byte animationGroup, byte baseFrame) override;
58 void primarySpeechAnimationRestored(byte animationGroup, byte baseFrame) override;
59 void handleLeftClick(const GameplayLoopCursorState &state) override;
60
61 bool runEntryElevatorSequence(bool alternateEntry);
62 bool playElevatorSequence(const byte *frameMap, uint frameMapSize, bool drawActor);
63 bool holdElevatorFrame(bool drawActor);
64 void runButtonExitToState(uint16 nextState);
65 void runButtonReturnSequence();
66 void runUnderwearPickup();
67 void runBottlePickup();
68 void runWerewolfDialogue();
69 void runManicureGirlTalk();
70 void runJacuzziGirlTalk();
71 void runMirrorApproach();
72 void runMirrorPickup();
73 void runJacuzziInspection();
74 void runHairTreatmentTalk();
75 void beginSalonPrimarySpeechLine(uint16 rowIndex, byte frameIndex);
76 void settleWerewolfForSpeech();
77 void initializeWerewolfDialogueRecords(Common::Array<DialogueChoiceRecord> &records) const;
78 void setWerewolfDialogueRecord(Common::Array<DialogueChoiceRecord> &records, uint index,
79 byte enabled, byte nextNodeIndex, byte transitionMode, byte playerTextRowId,
80 byte responseFrameIndex, byte disableAfterUse) const;
81 bool applyWerewolfDialogueTransition(const DialogueChoiceRecord &record, byte &depthIndex, byte &nodeIndex);
82 void initializeSalonLayers();
83 void advanceSalonAnimations(uint32 delta);
84 void advanceSalonAnimationTick();
85 void advanceUpperRightSalonTick();
86 void advanceRightSalonDetailTick();
87 void advanceLowerSalonDetailTick();
88 void advanceCenterSalonTick();
89 void advanceLeftSalonTick();
90 void advanceWerewolfTick(bool allowLongGesture);
91 void advanceWerewolfDialogueTick();
92 void advanceCenterSalonDetailTick();
93 void drawNormalRoomLayers(int activeWorldY);
94 void drawSalonSpriteLayers();
95 void drawElevatorComposite(bool drawActiveActor, byte activeFacing, byte activeCel,
96 int activeWorldX, int activeWorldY, bool drawSecondaryActor, byte secondaryFacing,
97 byte secondaryFrame, int secondaryWorldX, int secondaryWorldY);
98 void updateElevatorButtonActionTargets(bool useStrip);
99 void initializeSceneItemLabels();
100 void copyStageSmallRow(byte sourceRow, byte destinationRow);
101 void clearSceneItemFromColorMap(byte itemId);
102 void replaceColorMapItemFromOriginal(byte sourceItem, byte destinationItem);
103 void rebuildWalkableMask();
104
105 uint _randomDetailTrack;
106 TimedAnimationChannel _salonAnimationChannel;
107 byte _upperRightSalonState;
108 byte _rightSalonDetailDirection;
109 byte _rightSalonDetailDwell;
110 byte _lowerSalonDetailState;
111 byte _leftSalonRepeatCount;
112 byte _werewolfState;
113 byte _centerSalonDetailRepeatCount;
114 bool _centerSalonToggleA;
115 bool _centerSalonToggleB;
116 bool _centerSalonDetailSequenceActive;
117 bool _werewolfDialogueActive;
118};
119
120} // End of namespace Hollywood
121
122#endif // HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE5110_H
Definition: array.h:52
Definition: hollywood.h:47
Definition: playable_scene.h:84
Definition: scene5110.h:32
Definition: actor_types.h:59
Definition: ambient_audio.h:44
Definition: dialogue_menu.h:33
Definition: game_loop.h:44
Definition: scene_data.h:29
Definition: animation_channels.h:34