ScummVM API documentation
Hollywood::SpeechController Class Reference

#include <speech_controller.h>

Public Member Functions

 SpeechController (Common::Language language, bool speechEnabled=true)
 
void initialize (byte secondaryTextColor, byte primaryTextColor)
 
void resetRuntimeState (byte invalidPrimaryGroup, byte defaultPrimaryFrame)
 
void clearSecondaryOverlay ()
 
void clearPrimaryOverlay ()
 
void clearAllOverlays ()
 
void prepareSecondaryActorSpeech ()
 
void advanceSecondaryActorSpeechAnimation (uint32 delta, Common::RandomSource &random, uint32 frameMillis, byte frameCount)
 
void advanceSecondaryActorSpeechFrame (Common::RandomSource &random, byte frameCount)
 
byte advancePrimaryLeftSpeechFrame (Common::RandomSource &random)
 
byte advancePrimaryDialogueSpeechFrame (Common::RandomSource &random, byte baseFrame, byte frameCount)
 
void startPrimaryLeftSpeech ()
 
void stopPrimaryLeftSpeech ()
 
void startPrimaryDialogueSpeech (byte animationGroup, byte baseFrame)
 
void stopPrimaryDialogueSpeech (byte invalidPrimaryGroup, byte defaultPrimaryFrame)
 

Public Attributes

SpeechPlayer _player
 
SpeechOverlay _secondaryOverlay
 
SpeechOverlay _primaryOverlay
 
byte _primaryLeftSpeechLastFrame
 
byte _primaryDialogueSpeechLastFrame
 
byte _primaryDialogueSpeechGroup
 
bool _primaryLeftSpeechActive
 
bool _primaryDialogueSpeechActive
 
uint32 _secondaryActorTimerAccumulator
 
uint32 _primaryLeftSpeechTimerAccumulator
 
uint32 _primaryDialogueSpeechTimerAccumulator
 
byte _secondaryActorFrame
 

Detailed Description

Owns speech playback, subtitle overlays, and actor speech-animation state.

PlayableScene supplies elapsed time and draws the result; this helper owns and mutates the playback state but never presents a frame.


The documentation for this class was generated from the following file: