22#ifndef HOLLYWOOD_SCENE_TEXT_STORE_H
23#define HOLLYWOOD_SCENE_TEXT_STORE_H
25#include "common/array.h"
26#include "common/str.h"
27#include "common/types.h"
30class SeekableReadStream;
45 uint16 newVoiceSampleId) :
46 textRecordId(newTextRecordId),
47 continuationCount(newContinuationCount),
48 voiceSampleId(newVoiceSampleId) {
51 bool valid()
const {
return textRecordId != 0; }
54 byte continuationCount;
68 bool load(
const char *archiveName,
const char *sceneDebugName, uint stageIndex,
69 uint inventoryRowsOffsetIndex, uint32 speechCueDescriptorOffset,
70 bool validateSequentialVoiceMap =
false);
71 bool loadStage(
const char *archiveName,
const char *sceneDebugName, uint stageIndex);
72 bool loadStaticSpeech(
const char *archiveName,
const char *sceneDebugName,
73 uint inventoryRowsOffsetIndex, uint32 speechCueDescriptorOffset);
76 Common::String dialogueMenuText(
byte stageId,
byte textRowId)
const;
78 bool getStageCue(uint16 rowIndex,
byte frameIndex, uint16 &textRecordId,
79 byte &continuationCount, uint16 &voiceSampleId)
const;
80 bool getStaticSpeechCue(uint16 rowIndex,
byte frameIndex, uint16 &textRecordId,
81 byte &continuationCount, uint16 &voiceSampleId)
const;
93 SceneSpeechCue staticSpeechCue(uint16 rowIndex,
byte frameIndex)
const;
99 const char *archiveName, uint32 speechCueDescriptorOffset,
100 uint trailingByteCount = 0);
102 const char *archiveName, uint inventoryRowsOffsetIndex,
103 uint32 speechCueDescriptorOffset);
105 uint inventoryRowsOffsetIndex,
byte smallRowCount, uint16 largeRowCount);
106 uint16 findStageVoiceSampleBase(uint largeRowCount)
const;
108 uint16 _stageVoiceSampleBase;
109 bool _validateSequentialVoiceMap;
Definition: scene_text_store.h:64
Definition: text_translation.h:40
Definition: algorithm.h:29
Definition: scene_text_store.h:37