diff options
author | Paul Gilbert | 2006-09-07 11:21:20 +0000 |
---|---|---|
committer | Paul Gilbert | 2006-09-07 11:21:20 +0000 |
commit | d9b5129fb8620ec715e3aaa068cfd2a25e197fdd (patch) | |
tree | 212e864b9585debc8973ec4a20099e5dfcd01938 /engines/lure/res_struct.h | |
parent | 7a0eddeedd4cf2aa467ea75f3700ba72389e47a1 (diff) | |
download | scummvm-rg350-d9b5129fb8620ec715e3aaa068cfd2a25e197fdd.tar.gz scummvm-rg350-d9b5129fb8620ec715e3aaa068cfd2a25e197fdd.tar.bz2 scummvm-rg350-d9b5129fb8620ec715e3aaa068cfd2a25e197fdd.zip |
Transferred all previously hard-coded English in-game text to a resource
svn-id: r23831
Diffstat (limited to 'engines/lure/res_struct.h')
-rw-r--r-- | engines/lure/res_struct.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/engines/lure/res_struct.h b/engines/lure/res_struct.h index c9ae4e783d..b6e4f56502 100644 --- a/engines/lure/res_struct.h +++ b/engines/lure/res_struct.h @@ -30,7 +30,6 @@ namespace Lure { using namespace Common; -extern const char *actionList[]; extern const Action sortedActions[]; /*-------------------------------------------------------------------------*/ @@ -644,6 +643,31 @@ public: int check(uint16 charId, int numImpinging, uint16 *impingingList); }; +enum StringEnum {S_CREDITS = 25, S_RESTART_GAME = 26, S_SAVE_GAME = 27, S_RESTORE_GAME = 28, + S_QUIT = 29, S_FAST_TEXT = 30, S_SLOW_TEXT = 31, S_SOUND_ON = 32, S_SOUND_OFF = 33, + S_NOTHING = 34, S_FOR = 35, S_TO = 36, S_ON = 37, S_AND_THEN = 38, + S_FINISH = 39}; + +class StringList { +private: + MemoryBlock *_data; + int _numEntries; + char **_entries; +public: + StringList() { _numEntries = 0; } + ~StringList() { clear(); } + + void load(MemoryBlock *data); + void clear(); + int count() { return _numEntries; } + const char *getString(int index) { + if ((index < 0) || (index >= _numEntries)) error("Invalid index specified to String List"); + return _entries[index]; + } + const char *getString(Action action) { return getString((int) action - 1); } + const char *getString(StringEnum sEnum) { return getString((int) sEnum); } +}; + // The following class holds the field list used by the script engine as // well as miscellaneous fields used by the game. |