ScummVM API documentation
scene1080.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_SCENE1080_H
23#define HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE1080_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 Scene1080 : public PlayableScene {
33public:
35
36private:
37 void initializeCustomPreviewState() override;
38 void drawCustomActorForegroundComposite(int activeWorldX, int activeWorldY,
39 byte actorDrawOrderMode) override;
40 void runCustomEntrySequence() override;
41 void prepareCustomGameplayLoop() override;
42 void advanceCustomGameplayLoop(uint32 delta) override;
43 bool dispatchCustomSceneAction(uint16 handlerId) override;
44 bool applyCustomSceneStateToHotspotsAndPatches(byte selector) override;
45 bool shouldAnimatePrimarySpeechLine() const override;
46 void setPrimarySpeechAnimationFrame(byte animationGroup, byte frameIndex) override;
47 AmbientAudioProfile ambientAudioProfile() const override;
48
49 void resetAnimationLayers();
50 void advanceForegroundLayer(uint32 delta);
51 void advanceFrancoisLayer(uint32 delta);
52 void drawForegroundBlocks(int activeWorldX, int activeWorldY);
53 void rebuildKitchenWalkableMask();
54 void applyKitchenItemMap();
55 void runFrancoisConversation();
56 void handleFrancoisDistraction();
57 void runFrancoisActionSpeechLine(byte frameIndex, byte firstDescriptor, byte lastDescriptor,
58 uint16 centerX, uint16 topY);
59 void initializeFrancoisDialogueRecords(Common::Array<DialogueChoiceRecord> &records) const;
60 void setDialogueRecord(Common::Array<DialogueChoiceRecord> &records, uint index,
61 byte enabled, byte nextNodeIndex, byte transitionMode, byte playerTextRowId,
62 byte responseFrameIndex, byte disableAfterUse) const;
63
64 TimedAnimationChannel _foregroundChannel;
65 TimedAnimationChannel _francoisIdleChannel;
66 TimedAnimationChannel _francoisWorkChannel;
67 byte _foregroundMode;
68 byte _francoisMode;
69 bool _francoisActionActive;
70};
71
72} // End of namespace Hollywood
73
74#endif // HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE1080_H
Definition: array.h:52
Definition: hollywood.h:47
Definition: playable_scene.h:84
Definition: scene1080.h:32
Definition: ambient_audio.h:44
Definition: animation_channels.h:34