ScummVM API documentation
Chewy::Text Class Reference
Inheritance diagram for Chewy::Text:
Chewy::Resource

Public Member Functions

TextEntryListgetDialog (uint dialogNum, uint entryNum)
 
TextEntrygetText (uint chunk, uint entry, int type, int subEntry=-1)
 
Common::StringArray getTextArray (uint chunk, uint entry, int type, int subEntry=-1)
 
Common::String getTextEntry (uint chunk, uint entry, int type, int subEntry=-1)
 
int16 getLastSpeechId ()
 
const char * strPos (const char *txtAdr, int16 pos)
 
void syncHotspotStrings (Common::Serializer &s)
 
void syncInventoryStrings (Common::Serializer &s)
 
void syncInventoryUseStrings (Common::Serializer &s)
 
bool getControlBit (int16 txtNr, int16 bitIdx)
 
void setControlBit (int16 txtNr, int16 bitIdx)
 
void delControlBit (int16 txtNr, int16 bitIdx)
 
void setTextId (uint16 entry, uint8 subEntry, uint8 strNr, uint8 type)
 
- Public Member Functions inherited from Chewy::Resource
 Resource (const Common::Path &filename)
 
ResourceType getType () const
 
uint32 getSize () const
 
uint32 findLargestChunk (uint start, uint end)
 
uint32 getChunkCount () const
 
ChunkgetChunk (uint num)
 
virtual uint8 * getChunkData (uint num)
 

Additional Inherited Members

- Protected Member Functions inherited from Chewy::Resource
void initSprite (const Common::Path &filename)
 
void unpackRLE (uint8 *buffer, uint32 compressedSize, uint32 uncompressedSize)
 
void decrypt (uint8 *data, uint32 size)
 
- Protected Attributes inherited from Chewy::Resource
Common::File _stream
 
uint16 _chunkCount
 
ResourceType _resType
 
bool _encrypted
 
uint8 _spritePalette [3 *256]
 
uint32 _allSize
 
uint16 _spriteCorrectionsCount
 
uint16 * _spriteCorrectionsTable
 
ChunkList _chunkList
 

Member Function Documentation

◆ getDialog()

TextEntryList* Chewy::Text::getDialog ( uint  dialogNum,
uint  entryNum 
)

Gets a list of lines for a specific dialog entry

◆ getText()

TextEntry* Chewy::Text::getText ( uint  chunk,
uint  entry,
int  type,
int  subEntry = -1 
)

Gets a line of text of the following types:

  • text (ATS) - 500 - 599
  • auto dialog (AAD) - 600 - 699
  • inventory text (INV) - 700 - 799
  • use text (USE) - 800 - 899

A chunk can contain multiple subchunks with the same entry IDs per subchunk: 0 - name, 1 - look, 2 - use, 3 - walk, 4 - talk


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