ScummVM API documentation
scene6100.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_SCENE6100_H
23#define HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE6100_H
24
25#include "hollywood/monsters/scenes/playable/playable_scene.h"
26
27namespace Hollywood {
28
29class HollywoodEngine;
30
31// Runs the museum's upper floor, Charlie dialogue, and Billy Ford letter exchange.
32class Scene6100 : public PlayableScene {
33public:
35
36private:
37 void initializeCustomPreviewState() override;
38 void runCustomEntrySequence() override;
39 void prepareCustomGameplayLoop() override;
40 void advanceCustomGameplayLoop(uint32 delta) override;
41 void advancePrimarySpeechAnimation(uint32 delta) override;
42 void prepareCustomComposite(bool drawActors, byte activeFacing,
43 int activeWorldX, int activeWorldY, byte actorDrawOrderMode) override;
44 bool shouldUseActorDepthTest(int actorWorldX, int actorWorldY) const override;
45 bool dispatchCustomSceneAction(uint16 handlerId) override;
46 bool customizeRouteSegment(byte currentRegion, byte nextRegion,
47 const ActorPathBuildState &state, const ScenePoint &boundary,
48 int &requestedFacing, bool &restoredStepDeltas) override;
49 bool customizeRouteFinal(byte currentRegion, byte targetRegion,
50 const ActorPathBuildState &state, int targetX, int targetY,
51 int &requestedFacing, bool &restoredStepDeltas) override;
52 bool applyCustomSceneStateToHotspotsAndPatches(byte selector) override;
53 byte primarySpeechAnimationBaseFrame(byte animationGroup) const override;
54 uint32 primarySpeechAnimationFrameMillis(byte animationGroup) const override;
55 void setPrimarySpeechAnimationFrame(byte animationGroup, byte frameIndex) override;
56 void primarySpeechAnimationRestored(byte animationGroup, byte baseFrame) override;
57 void runExitSideEffectsAfterLoop() override;
58 AmbientAudioProfile ambientAudioProfile() const override;
59
60 void resetSceneLayers();
61 void advanceCharlieIdle(uint32 delta);
62 void advanceCharlieConversationIdle(uint32 delta);
63 void advanceLetterReadingSpeech(uint32 delta);
64 void enterCharlieDialoguePose();
65 void switchCharlieToAlternatePose();
66 void returnCharlieToDialoguePose();
67 void finishCharlieDialoguePose();
68 void runCharlieDialogue();
69 void initializeCharlieDialogueRecords(Common::Array<DialogueChoiceRecord> &records) const;
70 void setCharlieDialogueRecord(Common::Array<DialogueChoiceRecord> &records, uint index,
71 byte enabled, byte nextNodeIndex, byte transitionMode, byte playerTextRowId,
72 byte responseFrameIndex, byte disableAfterUse) const;
73 void beginCharlieSpeechLine(uint16 rowIndex, byte frameIndex, byte animationGroup);
74 void takeCharlieBriefcase();
75 void giveBillyFordEnvelopeToCharlie();
76
77 TimedAnimationChannel _charlieIdleChannel;
78 TimedAnimationChannel _charlieConversationChannel;
79 byte _charlieIdleState;
80 byte _charliePose;
81 bool _charlieManualSequenceActive;
82 bool _charlieConversationActive;
83};
84
85} // End of namespace Hollywood
86
87#endif // HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE6100_H
Definition: array.h:52
Definition: hollywood.h:47
Definition: playable_scene.h:84
Definition: scene6100.h:32
Definition: actor_types.h:59
Definition: ambient_audio.h:44
Definition: scene_data.h:29
Definition: animation_channels.h:34