ScummVM API documentation
scene7020.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_SCENE7020_H
23#define HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE7020_H
24
25#include "hollywood/monsters/scenes/playable/playable_scene.h"
26
27namespace Hollywood {
28
29class HollywoodEngine;
30
31class Scene7020 : public PlayableScene {
32public:
34
35 bool play();
36
37private:
38 void initializeCustomPreviewState() override;
39 void drawCustomActorForegroundComposite(int activeWorldX, int activeWorldY,
40 byte actorDrawOrderMode) override;
41 void advanceCustomGameplayLoop(uint32 delta) override;
42 void advancePrimarySpeechAnimation(uint32 delta) override;
43 void advanceAmbientAudio(uint32 delta) override;
44 byte primarySpeechAnimationBaseFrame(byte animationGroup) const override;
45 void setPrimarySpeechAnimationFrame(byte animationGroup, byte frameIndex) override;
46
47 bool loadOwner0StaticSpeechTables();
48 bool getOwner0StaticSpeechCue(uint16 rowIndex, byte frameIndex, uint16 &textRecordId,
49 byte &continuationCount, uint16 &voiceSampleId) const;
50 Common::String getOwner0LargeTextRecord(uint16 recordId) const;
51 void runOwner0SpeechCue(SpeechOverlay &overlay, uint16 textRecordId, byte continuationCount,
52 uint16 voiceSampleId, uint16 centerX, uint16 topY, byte colorIndex, bool useRequestedTop,
53 bool animatePrimaryDialogue);
54 void beginOwner0SecondarySpeechLine(uint16 rowIndex, byte frameIndex);
55 void beginOwner0PrimarySpeechLine(uint16 rowIndex, byte frameIndex, uint16 centerX, uint16 topY,
56 byte red, byte green, byte blue);
57 void runScriptedSequence();
58 void runOpeningSueEntryAndIdleWaits();
59 bool finishOpeningSueEntryAfterSkip();
60 void runChunk6FrameRange(byte firstFrame, byte lastFrame, byte finalPoseMode);
61 void runChunk7RevealFramesThenHold();
62 void blackOutScenePalette();
63 void resetTransientOverlayLayers();
64 void setChunk6Visible(bool visible);
65 void setChunk6Frame(byte frameMapIndex);
66 void setChunk7Visible(bool visible);
67 void setChunk7Frame(byte frameIndex);
68 byte chunk7Frame() const;
69
70 Common::Array<byte> _owner0SpeechCueDescriptors;
71 Common::Array<byte> _owner0SmallRows;
72 Common::Array<byte> _owner0LargeRows;
73 byte _primaryPoseMode;
74 bool _drawChunk7OverlayInsteadOfActor;
75 uint32 _chunk7TimerAccumulator;
76 uint32 _primaryTimerAccumulator;
77};
78
79} // End of namespace Hollywood
80
81#endif
Definition: str.h:59
Definition: hollywood.h:47
Definition: playable_scene.h:84
Definition: scene7020.h:31
Definition: speech_overlay.h:38