22#ifndef HOLLYWOOD_RUNAWAY_SCENE8420_H
23#define HOLLYWOOD_RUNAWAY_SCENE8420_H
25#include "hollywood/runaway/scene.h"
33 void update(uint32 now,
int scrollDirection,
bool inventoryOpen)
override;
34 bool canSave()
const override {
return false; }
37 enum Film { kNoFilm, kWakingUp, kConfession, kNightmare };
39 bool loadCustomResources()
override;
40 void applyCustomHotspotState()
override;
41 void prepareCustomGameplayLoop()
override;
42 void runCustomEntrySequence()
override;
43 void resumeAmbientAudio(
bool entering)
override;
44 void advanceCustomGameplayLoop(uint32 delta)
override;
46 bool shouldDrawActor()
const override {
return _showBrian; }
47 bool shouldPlayGameplayClickPath()
const override {
return false; }
48 bool updateCustomSequence()
override;
49 float actorHeight()
const override;
51 ActionResult dispatchCustomSceneAction(uint16 action)
override;
52 uint16 dialoguePlayerCue()
const override {
return 40; }
53 uint16 dialogueResponseCue()
const override {
return 50; }
54 void handleCustomDialogueChoice(
byte effect)
override;
55 void finishCustomConversation()
override;
56 void finishCustomFilm()
override;
58 void exchange(uint16 cue,
byte first,
byte last);
59 void startGinaConversation();
60 void startConfession();
61 void startNightmareMovement(
byte first,
byte last, uint16 nextAction);
62 void updateNightmareAudio();
66 uint32 _ambientTick = 0, _ginaTick = 0;
67 byte _ambientFrame[2] = {}, _ginaFrame = 0, _johnnyFrame = 0;
68 byte _nightmareLast = 0, _lastScream = 0;
69 bool _showBrian =
true, _waitingForGina =
false, _dreaming =
false, _screaming =
false;
70 bool _nightmareMoving =
false;
71 uint16 _destination = 8091;
Definition: managed_surface.h:51
Definition: scene8420.h:30
Definition: graphics.h:54
Definition: inventory.h:41
Definition: graphics.h:76