22#ifndef HOLLYWOOD_RUNAWAY_INTRO_H
23#define HOLLYWOOD_RUNAWAY_INTRO_H
25#include "hollywood/runaway/audio.h"
26#include "hollywood/runaway/graphics.h"
27#include "hollywood/runaway/presentation.h"
28#include "hollywood/runaway/scene2010.h"
36 enum Mode { kCompleteIntro, kLogoOnly, kOpeningOnly };
38 bool load(
bool fullGame =
false,
byte chapter = 0, Mode mode = kCompleteIntro);
39 void start(uint32 now);
40 void skip(uint32 now);
41 void skipSpeech(uint32 now);
42 void update(uint32 now);
44 bool finished()
const {
return _phase == kFinished; }
45 bool failed()
const {
return _opening.failed(); }
50 void skipPresentation(uint32 now)
override { skip(now); }
51 void skipPresentationSpeech(uint32 now)
override { skipSpeech(now); }
53 enum Phase { kLogo, kLogoAudio, kStoryFadeIn, kStory, kStoryFadeOut, kOpening, kFinished };
54 void startStory(uint32 now);
58 bool _fullGame =
false;
60 Mode _mode = kCompleteIntro;
63 Phase _phase = kFinished;
64 uint32 _phaseStarted = 0;
65 uint32 _storyFadeDuration = 0;
66 int _logoFrames[3] = { -1, -1, -1 };
67 uint _brightness = 255;
Definition: managed_surface.h:51
Definition: graphics.h:54
Definition: scene2010.h:36
Definition: presentation.h:42