ScummVM API documentation
scene6080.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_SCENE6080_H
23#define HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE6080_H
24
25#include "hollywood/monsters/scenes/playable/playable_scene.h"
26
27namespace Hollywood {
28
29class HollywoodEngine;
30
31class Scene6080 : public PlayableScene {
32public:
34
35private:
36 enum LayerId {
37 kSueNormalLayer,
38 kSueAlternateLayer,
39 kWaxBallLayer,
40 kGuardNormalLayer,
41 kGuardAlternateLayer
42 };
43
44 void initializeCustomPreviewState() override;
45 bool shouldDrawSecondaryActorInPlayableComposite() const override;
46 void runCustomEntrySequence() override;
47 void prepareCustomGameplayLoop() override;
48 void advanceCustomGameplayLoop(uint32 delta) override;
49 bool dispatchCustomSceneAction(uint16 handlerId) override;
50 bool adjustCustomWalkTargetToFloorMask(int &targetX, int &targetY) const override;
51 bool applyCustomSceneStateToHotspotsAndPatches(byte selector) override;
52 byte primarySpeechAnimationBaseFrame(byte animationGroup) const override;
53 uint32 primarySpeechAnimationFrameMillis(byte animationGroup) const override;
54 void setPrimarySpeechAnimationFrame(byte animationGroup, byte frameIndex) override;
55 void primarySpeechAnimationRestored(byte animationGroup, byte baseFrame) override;
56 void runExitSideEffectsAfterLoop() override;
57 AmbientAudioProfile ambientAudioProfile() const override;
58
59 void resetSceneLayers();
60 void advanceSueIdle(uint32 delta);
61 void finishSueIdleSequence();
62 void runReturnConversation();
63 void runWaxBallEscapeSequence();
64 void startWaxBallAnimation();
65 void advanceWaxBallAnimation(uint32 delta);
66 void runFinalSueAnimation();
67 void advanceFinalSueAnimation(uint32 delta);
68 void dimEscapePalette();
69 ResourceSpriteLayer &sueNormalLayer() { return _sceneLayers.layer(kSueNormalLayer); }
70 ResourceSpriteLayer &sueAlternateLayer() { return _sceneLayers.layer(kSueAlternateLayer); }
71 const ResourceSpriteLayer &sueAlternateLayer() const { return _sceneLayers.layer(kSueAlternateLayer); }
72 ResourceSpriteLayer &waxBallLayer() { return _sceneLayers.layer(kWaxBallLayer); }
73 ResourceSpriteLayer &guardNormalLayer() { return _sceneLayers.layer(kGuardNormalLayer); }
74 ResourceSpriteLayer &guardAlternateLayer() { return _sceneLayers.layer(kGuardAlternateLayer); }
75
76 TimedAnimationChannel _sueIdleChannel;
77 uint _guardIdleTrack;
78 TimedAnimationChannel _waxBallChannel;
79 TimedAnimationChannel _escapeSueChannel;
80 TimedAnimationChannel _escapeGuardChannel;
81 TimedAnimationChannel _finalSueChannel;
82 bool _sueLongIdleActive;
83 bool _guardManualSequenceActive;
84 bool _manualSequenceActive;
85 bool _waxBallAnimationActive;
86 bool _escapeLayersSwitched;
87 bool _finalSueAnimationActive;
88};
89
90} // End of namespace Hollywood
91
92#endif // HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE6080_H
Definition: hollywood.h:47
Definition: playable_scene.h:84
Definition: scene6080.h:31
Definition: ambient_audio.h:44
Definition: animation_layers.h:33
Definition: animation_channels.h:34