aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek/room.h
diff options
context:
space:
mode:
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 33c46ce7d6..8f39b6b33e 100644
--- a/engines/startrek/room.h
+++ b/engines/startrek/room.h
@@ -26,6 +26,7 @@
#include "common/rect.h"
#include "common/ptr.h"
#include "common/str.h"
+#include "common/hashmap.h"
#include "startrek/action.h"
#include "startrek/awaymission.h"
@@ -36,7 +37,6 @@
using Common::SharedPtr;
-
namespace StarTrek {
class StarTrekEngine;
@@ -143,6 +143,8 @@ public:
*/
Common::Point getSpawnPosition(int crewmanIndex);
+ int showText(TextRef speaker, TextRef text, bool fromRDF = false);
+
public:
byte *_rdfData;
@@ -154,7 +156,10 @@ private:
int _numRoomActions;
int _roomIndex; // ie. for DEMON2, this is 2
+ Common::HashMap<int, Common::String> _lookMessages;
+ Common::HashMap<int, Common::String> _talkMessages;
+ void loadRoomMessages();
int findFunctionPointer(int action, void (Room::*funcPtr)());
@@ -181,9 +186,8 @@ private:
* Cmd 0x03
*/
int showRoomSpecificText(const char **textAddr);
- int showText(const TextRef *text);
- int showText(TextRef speaker, TextRef text);
- int showText(TextRef text);
+ int showText(const TextRef *text, bool fromRDF = false);
+ int showText(TextRef text, bool fromRDF = false);
/**
* Cmd 0x04
*/