aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek/room.h
diff options
context:
space:
mode:
authorFilippos Karapetis2019-06-11 00:47:42 +0300
committerFilippos Karapetis2019-06-11 00:48:16 +0300
commit05301c240b3ccc195c533cf7a2eddde683ee7d06 (patch)
tree65bab6bed51b68fe67abb47fc3aaf2f0017e2bfc /engines/startrek/room.h
parent709d606e016235b663e04b9abfa9d537bdc753f0 (diff)
downloadscummvm-rg350-05301c240b3ccc195c533cf7a2eddde683ee7d06.tar.gz
scummvm-rg350-05301c240b3ccc195c533cf7a2eddde683ee7d06.tar.bz2
scummvm-rg350-05301c240b3ccc195c533cf7a2eddde683ee7d06.zip
STARTREK: Load more messages from RDF files
The whole Demon chapter has been converted to the new logic. The offsets for the extra room messages have been hardcoded, for now, inside loadOtherRoomMessages(), until we figure out how they are referenced.
Diffstat (limited to 'engines/startrek/room.h')
-rw-r--r--engines/startrek/room.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/engines/startrek/room.h b/engines/startrek/room.h
index 8f39b6b33e..a5bf463ff3 100644
--- a/engines/startrek/room.h
+++ b/engines/startrek/room.h
@@ -143,8 +143,6 @@ public:
*/
Common::Point getSpawnPosition(int crewmanIndex);
- int showText(TextRef speaker, TextRef text, bool fromRDF = false);
-
public:
byte *_rdfData;
@@ -155,11 +153,15 @@ private:
const RoomAction *_roomActionList;
int _numRoomActions;
+ Common::String _rdfName;
int _roomIndex; // ie. for DEMON2, this is 2
Common::HashMap<int, Common::String> _lookMessages;
+ Common::HashMap<int, Common::String> _lookWithTalkerMessages;
Common::HashMap<int, Common::String> _talkMessages;
void loadRoomMessages();
+ void loadOtherRoomMessages();
+ void loadRoomMessage(const char *text);
int findFunctionPointer(int action, void (Room::*funcPtr)());
@@ -186,8 +188,10 @@ private:
* Cmd 0x03
*/
int showRoomSpecificText(const char **textAddr);
- int showText(const TextRef *text, bool fromRDF = false);
- int showText(TextRef text, bool fromRDF = false);
+ int showText(const TextRef *text, bool fromRDF = false, bool lookWithTalker = false);
+ int showText(TextRef text, bool fromRDF = false, bool lookWithTalker = false);
+ int showText(TextRef speaker, TextRef text, bool fromRDF = false, bool lookWithTalker = false);
+
/**
* Cmd 0x04
*/