22#ifndef HOLLYWOOD_RUNAWAY_SEQUENCE_H
23#define HOLLYWOOD_RUNAWAY_SEQUENCE_H
25#include "common/random.h"
26#include "engines/engine.h"
27#include "hollywood/resource.h"
28#include "hollywood/runaway/audio.h"
29#include "hollywood/runaway/graphics.h"
30#include "hollywood/runaway/speech.h"
31#include "hollywood/runaway/video.h"
32#include "hollywood/scene_text_store.h"
57 enum Playback { kOnce, kLoopDuringSpeech, kIdleDuringSpeech, kUntilSpeechEnds };
59 constexpr Command(Operation op, uint16 first = 0, uint16 second = 0,
byte third = 0,
byte fourth = 0) :
60 operation(op), a(first), b(second), c(third), d(fourth) {}
66 void start(
const Command *commands,
const SceneTextStore &text, uint32 now,
char chapter =
'B',
bool keepEffects =
false);
68 void update(uint32 now);
72 bool active()
const {
return _commands !=
nullptr; }
73 bool skipped()
const {
return _skipFilm; }
75 byte speechFrame()
const {
return _speech.frame(_now); }
79 void speak(uint cue, uint variation, uint lastVariation = 0,
bool global =
false);
81 void finishPreparation();
82 void cacheRevisitedFrames();
87 RunawaySpeech _speech;
88 RunawayVideo _video, _stills;
89 bool _useStill =
false;
90 RunawayFilmPortrait _portraits;
95 const SceneTextStore *_text =
nullptr;
96 const Command *_commands =
nullptr;
99 uint32 _now = 0, _started = 0;
100 uint32 _repeatAt = 0;
101 bool _entered =
false, _showPortrait =
false, _silentPortrait =
false;
102 bool _skipFilm =
false;
104 bool _skipSpeechPending =
false;
105 bool _keepEffects =
false;
106 int _listenerX = 512;
Definition: managed_surface.h:51
Definition: sequence.h:38
Definition: scene_text_store.h:64
Definition: sequence.h:58