diff options
author | Filippos Karapetis | 2016-10-05 10:47:22 +0300 |
---|---|---|
committer | Filippos Karapetis | 2016-10-05 10:47:22 +0300 |
commit | 18d6c501fc8f1af50e0e945406233af7ae94a75a (patch) | |
tree | ec6cf3b5b5c5c6c77ee48c9ed9487937f8743a6a /engines/chewy/text.h | |
parent | 19dab45c8c8bbca6aedce0574ffa44ab27715172 (diff) | |
download | scummvm-rg350-18d6c501fc8f1af50e0e945406233af7ae94a75a.tar.gz scummvm-rg350-18d6c501fc8f1af50e0e945406233af7ae94a75a.tar.bz2 scummvm-rg350-18d6c501fc8f1af50e0e945406233af7ae94a75a.zip |
CHEWY: Add support for in-game texts
Diffstat (limited to 'engines/chewy/text.h')
-rw-r--r-- | engines/chewy/text.h | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/engines/chewy/text.h b/engines/chewy/text.h index fe3e1da8b9..f729205a93 100644 --- a/engines/chewy/text.h +++ b/engines/chewy/text.h @@ -38,11 +38,11 @@ namespace Chewy { * USE - use action texts, 100 entries max */ enum MaxTextTypes { - kADSTextMax = 500, - kATSTextMax = 100, - kAADTextMax = 100, - kINVTextMax = 100, - kUSETextMax = 100 + kADSTextMax = 500, // 0 - 499 + kATSTextMax = 100, // 500 - 599 + kAADTextMax = 100, // 600 - 699 + kINVTextMax = 100, // 700 - 799 + kUSETextMax = 100 // 800 - 899 }; /** @@ -59,12 +59,12 @@ enum TextEntryMarkers { #define VOICE_OFFSET 20 -struct Dialog { +struct TextEntry { uint16 speechId; Common::String text; }; -typedef Common::List<Dialog> DialogList; +typedef Common::List<TextEntry> TextEntryList; class Text : public Resource { @@ -72,11 +72,19 @@ public: Text(); virtual ~Text(); - DialogList *getDialog(uint dialogNum, uint entryNum); - // TODO: getText() - // TODO: getAutoDialog() - // TODO: getInvDesc() - // TODO: getUseText() + /** + * Gets a list of lines for a specific dialog entry + */ + TextEntryList *getDialog(uint dialogNum, uint entryNum); + + /** + * 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 + */ + TextEntry *getText(uint dialogNum, uint entryNum); }; class ErrorMessage : public Resource { |