22#ifndef HOLLYWOOD_MONSTERS_SCENES_INTRO_SCENE9090_H
23#define HOLLYWOOD_MONSTERS_SCENES_INTRO_SCENE9090_H
25#include "common/random.h"
27#include "hollywood/monsters/gameplay/actor_renderer.h"
28#include "hollywood/monsters/music.h"
29#include "hollywood/monsters/scenes/presentation_scene.h"
30#include "hollywood/scene_text_store.h"
31#include "hollywood/monsters/scenes/speech_overlay.h"
45 struct ActorSpeechDescriptor {
46 uint32 runStreamOffset;
52 struct ActorSpeechBank {
58 bool loadActorResources();
59 void initializeOfficeState();
61 void drawOfficePatch(uint chunkIndex);
63 void drawInsetActor();
65 void drawSecondaryActor();
66 int drawSecondarySpeechFrame();
67 void runDialogueSequence();
68 void setDeskFacing(
byte facingMode);
69 void returnDeskActorToForward();
70 void animateDeskFrames(
byte firstFrame,
byte lastFrame);
71 void setInsetVariant(
byte variant);
72 void animateSecondaryTurn(
byte facing);
73 bool playClockedCompositeRange(
byte &targetFrame,
byte firstFrame,
74 byte lastFrame, uint32 frameMillis);
75 void presentAnimationFrame()
override;
76 bool waitForAnimationFrame(uint32 millis,
bool allowSkip)
override;
77 void runSpeechLine(
byte stepIndex);
78 void runConcurrentSpeechLines(
byte firstStepIndex,
byte secondStepIndex);
79 void runSpeechSteps(
const byte *stepIndices, uint stepCount);
80 void advanceDialogueAnimations(uint32 deltaMillis,
bool deskSpeaking,
81 bool secondarySpeaking,
bool insetSpeaking);
82 void advanceClock(uint32 deltaMillis);
83 byte nextFrameExcluding(
byte maximumFrame,
byte previousFrame);
84 void beginSubtitle(
SpeechOverlay &subtitle, uint16 textRecordId,
byte colorIndex,
85 uint16 anchorX, uint16 anchorY,
bool secondaryActor);
86 void clearSubtitles();
87 void drawFrameOverlays()
override;
88 void stopAudio()
override;
101 ActorSpeechBank _secondarySpeechBank;
105 byte _deskFacingMode;
108 byte _secondaryFacing;
110 byte _secondarySpeechFrame;
111 byte _clockFrames[3];
112 byte _lastDeskTalkFrame;
113 byte _lastInsetTalkFrame;
114 uint32 _deskFrameAccumulator;
115 uint32 _insetFrameAccumulator;
116 uint32 _secondaryFrameAccumulator;
117 uint32 _clockAccumulator;
118 bool _secondarySpeechVisible;
119 bool _advanceClockDuringAnimation;
Definition: hollywood.h:47
Definition: graphics.h:74
Definition: presentation_scene.h:38
Definition: scene9090.h:37
Definition: scene_text_store.h:64
Definition: actor_renderer.h:46
Definition: speech_overlay.h:38