ScummVM API documentation
scene4030.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_SCENE4030_H
23#define HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE4030_H
24
25#include "hollywood/monsters/scenes/animation_channels.h"
26#include "hollywood/monsters/scenes/playable/playable_scene.h"
27
28namespace Graphics {
29class ManagedSurface;
30}
31
32namespace Hollywood {
33
34class HollywoodEngine;
35
36class Scene4030 : public PlayableScene {
37public:
39
40private:
41 void initializeCustomPreviewState() override;
42 void drawCustomBackgroundComposite(int activeWorldX, int activeWorldY) override;
43 void runCustomEntrySequence() override;
44 void runExitSideEffectsAfterLoop() override;
45 void advanceCustomGameplayLoop(uint32 delta) override;
46 bool dispatchCustomSceneAction(uint16 handlerId) override;
47 bool adjustCustomWalkTargetToFloorMask(int &targetX, int &targetY) const override;
48 bool applyCustomSceneStateToHotspotsAndPatches(byte selector) override;
49 void refreshTranslatedText() override;
50 AmbientAudioProfile ambientAudioProfile() const override;
51
52 void initializeSpriteLayers();
53 void advanceBackgroundAnimations(uint32 delta);
54 void advanceRightPropLayer(uint frameCount);
55 void advanceMarkerPixels(uint32 delta);
56 void drawMarkerPixels();
57 void runTowerTransitionToScene4040();
58 bool runTowerTransitionClip(bool returningFromTower);
59 void drawTowerTransitionFrame(const Graphics::ManagedSurface &transitionBackground);
60 bool drawClipFrameDeltaToSurface(const Common::Array<byte> &clipData, uint tableEntryCount,
61 byte frameIndex, Graphics::ManagedSurface &destination);
62 void takeRope();
63 void talkToSkeleton();
64 void playBoneRevealAnimation();
65 void takeBone();
66 void installImprovisedLever();
67 void updateIronMaidenMechanism();
68 void playIronMaidenMechanismAnimation(byte secondaryFrameGroup);
69 void copyStageItemName(byte destinationItem, byte sourceItem);
70 void removeColorMapItem(byte itemId);
71 void replaceColorMapItem(byte sourceItem, byte destinationItem);
72
73 uint _leftPropTrack;
74 TimedAnimationChannel _rightPropChannel;
75 TimedAnimationChannel _markerChannel;
76 Common::Array<byte> _originalStageSmallRows;
77 bool _markerDark[7];
78 byte _rightPropState;
79};
80
81} // End of namespace Hollywood
82
83#endif // HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE4030_H
Definition: managed_surface.h:51
Definition: hollywood.h:47
Definition: playable_scene.h:84
Definition: scene4030.h:36
Definition: formatinfo.h:28
Definition: ambient_audio.h:44
Definition: animation_channels.h:34