ScummVM API documentation
Hollywood::SceneTextStore Class Reference

#include <scene_text_store.h>

Public Member Functions

 SceneTextStore (const TextTranslation *translation=nullptr)
 
bool load (const char *archiveName, const char *sceneDebugName, uint stageIndex, uint inventoryRowsOffsetIndex, uint32 speechCueDescriptorOffset, bool validateSequentialVoiceMap=false)
 
bool loadStage (const char *archiveName, const char *sceneDebugName, uint stageIndex)
 
bool loadStaticSpeech (const char *archiveName, const char *sceneDebugName, uint inventoryRowsOffsetIndex, uint32 speechCueDescriptorOffset)
 
Common::String inventoryItemName (byte itemId) const
 
Common::String dialogueMenuText (byte stageId, byte textRowId) const
 
SceneSpeechCue stageCue (uint16 rowIndex, byte frameIndex) const
 
bool getStageCue (uint16 rowIndex, byte frameIndex, uint16 &textRecordId, byte &continuationCount, uint16 &voiceSampleId) const
 
bool getStaticSpeechCue (uint16 rowIndex, byte frameIndex, uint16 &textRecordId, byte &continuationCount, uint16 &voiceSampleId) const
 
Common::String largeTextRecord (uint16 recordId) const
 

Public Attributes

Common::Array< byte > _decodeKey
 
Common::Array< byte > _stageBlock
 
Common::Array< byte > _stageSmallRows
 
Common::Array< byte > _stageLargeRows
 
Common::Array< byte > _staticSpeechCueDescriptors
 
Common::Array< byte > _inventoryOwnerSmallRows
 
Common::Array< byte > _inventoryOwnerLargeRows
 

Detailed Description

Loads and decodes scene text and speech-cue tables from RESOURCE.003.

A full load provides stage rows, inventory-owner rows, and static cues. Presentation scenes may instead load only the stage or static speech data.


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