22#ifndef HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE5130_H
23#define HOLLYWOOD_MONSTERS_SCENES_PLAYABLE_SCENE5130_H
25#include "common/array.h"
26#include "common/random.h"
27#include "common/str.h"
28#include "common/types.h"
30#include "hollywood/monsters/music.h"
31#include "hollywood/monsters/scenes/presentation_scene.h"
32#include "hollywood/scene_text_store.h"
49 bool loadInventoryOwnerPalette();
50 void expandFillRunsToSavedFramebuffer();
51 void runIntroAnimation();
53 void handleMixerAction(
byte actionId);
54 void runChangeDrinkAction();
55 void runOpenTapAction();
56 void runMixResultAction(
bool correctRecipe);
57 bool selectedRecipeIsCorrect()
const;
58 void applySuccessDrinkPalette();
59 void applyFailureDrinkPalette();
60 void applyDrinkPalette(
byte red,
byte green,
byte blue);
62 void drawDrinkStrip();
63 void drawFrameOverlays()
override;
65 void startSpeechLine(uint16 rowIndex,
byte frameIndex);
66 void startSpeechPart();
67 void startNextSpeechPart();
68 void advanceSpeech(uint32 millis);
69 void waitForSpeechLine();
70 void stopSpeechLine();
71 void beginSpeechLine(uint16 rowIndex,
byte frameIndex);
72 void advanceRuntime(uint32 millis);
73 void updateAmbientMusic(uint32 millis);
74 bool fadePaletteFromBlack();
75 bool fadePaletteToBlack();
76 bool waitAndRender(uint32 millis);
77 bool waitForRuntime(uint32 millis);
78 bool pollEvents(
bool allowSkip)
override;
79 byte actionAtCursor()
const;
81 void setPaletteEntry6Bit(
byte colorIndex,
byte red,
byte green,
byte blue);
82 void stopAudio()
override;
83 bool animationPlaybackShouldStop()
const override;
84 void presentAnimationFrame()
override;
85 bool waitForAnimationFrame(uint32 millis,
bool allowSkip)
override;
94 byte _selectedDrinks[3];
95 byte _selectedDrinkCount;
98 byte _pendingActionId;
100 uint16 _speechTextRecordId;
101 uint16 _speechVoiceSampleId;
102 byte _speechPartIndex;
103 byte _speechPartCount;
104 uint32 _speechRemainingMillis;
105 uint32 _ambientMusicTimerMillis;
107 bool _mixerActionsEnabled;
108 bool _deferredExitRequested;
Definition: hollywood.h:47
Definition: graphics.h:74
Definition: presentation_scene.h:38
Definition: scene5130.h:40
Definition: scene_text_store.h:64