22#ifndef HOLLYWOOD_MONSTERS_SCENES_INTRO_SCENE9010_H
23#define HOLLYWOOD_MONSTERS_SCENES_INTRO_SCENE9010_H
25#include "common/array.h"
26#include "common/file.h"
27#include "common/str.h"
29#include "hollywood/monsters/music.h"
30#include "hollywood/resource.h"
31#include "hollywood/monsters/scenes/presentation_scene.h"
32#include "hollywood/scene_text_store.h"
43 bool skipRequested()
const {
return _skipRequested; }
48 struct SpeechTextStyle {
57 enum I02FramePayloadFormat {
58 kI02FramePayloadUnknown,
59 kI02FramePayloadBlockList,
60 kI02FramePayloadScreenRows,
61 kI02FramePayloadSceneRows
66 bool loadScene9010Resources();
67 bool loadI02StillFrameResource();
68 bool validateI02AnimationResources();
70 bool runPoseTransition(
bool targetAlternatePose);
71 bool playSpeechExchange(
byte descriptorIndex);
72 bool playI02Animation();
74 bool loadI02ChunkedFrame(uint frameIndex);
76 void setI02PaletteFrame(uint frameIndex);
77 I02FramePayloadFormat detectI02FramePayloadFormat(
const Common::Array<byte> &payload)
const;
82 byte nextTalkingFrameVariant();
84 void drawCharacterFrame(
byte frameIndex);
86 void updateScene9010PaletteFade();
87 void beginSubtitle(
const SceneSpeechCue &popup, uint segmentIndex);
88 SpeechTextStyle getCurrentSpeechTextStyle()
const;
90 bool delayScene9010(uint32 millis);
91 void stopAudio()
override;
97 kSceneFramebufferSize = 0x100000,
98 kRawScreenFrameSize = 0x4b000,
99 kRawSceneFrameSize = kSceneBufferByteCount,
100 kCharacterFrameDescriptorCount = 17
110 I02FramePayloadFormat _i02FramePayloadFormat;
111 bool _i02SingleFrameOnly;
113 bool _alternatePoseActive;
114 byte _characterFrameIndex;
115 byte _lastTalkingFrameVariant;
116 byte _scene9010FadeCountdown;
117 bool _scene9010FadeComplete;
118 uint32 _scene9010FadeAccumulator;
Definition: hollywood.h:47
Definition: graphics.h:74
Definition: presentation_scene.h:38
Definition: scene9010.h:38
Definition: scene_text_store.h:64
Definition: resource.h:46
Definition: scene_text_store.h:37