aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/conversations.h
diff options
context:
space:
mode:
authorPaul Gilbert2016-01-08 18:46:04 +1100
committerPaul Gilbert2016-01-08 18:46:04 +1100
commit6e0d6e36a921972305e458fe9194548efc50dead (patch)
tree9cea2866b23cd833508c186c5635bc7edab63016 /engines/mads/conversations.h
parentf1a80f91a684cd0e1fc2898d92a1c7531c3b2d75 (diff)
downloadscummvm-rg350-6e0d6e36a921972305e458fe9194548efc50dead.tar.gz
scummvm-rg350-6e0d6e36a921972305e458fe9194548efc50dead.tar.bz2
scummvm-rg350-6e0d6e36a921972305e458fe9194548efc50dead.zip
MADS: Further conversation cleanup, start of conv CND file loading
Diffstat (limited to 'engines/mads/conversations.h')
-rw-r--r--engines/mads/conversations.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/engines/mads/conversations.h b/engines/mads/conversations.h
index ceb5ad6eb7..b50b87cb98 100644
--- a/engines/mads/conversations.h
+++ b/engines/mads/conversations.h
@@ -88,7 +88,7 @@ struct ConversationData {
void load(const Common::String &filename);
};
-struct ConversationData2 {
+struct ConversationCnd {
struct ConversationVar {
int v1;
int v2;
@@ -96,12 +96,17 @@ struct ConversationData2 {
};
Common::Array<ConversationVar> _vars;
+
+ /**
+ * Load the specified conversation resource file
+ */
+ void load(const Common::String &filename);
};
struct ConversationEntry {
int _convId;
ConversationData _data;
- ConversationData2 _data2;
+ ConversationCnd _cnd;
};
class MADSEngine;
@@ -145,6 +150,18 @@ public:
virtual ~GameConversations();
/**
+ * Gets the specified conversation and loads into into a free slot
+ * in the conversation list
+ */
+ void load(int id);
+
+ /**
+ * Run a specified conversation number. The conversation must have
+ * previously been loaded by calling the load method
+ */
+ void run(int id);
+
+ /**
* Sets a variable
*/
void setVariable(uint idx, int v1, int v2 = -1);
@@ -152,8 +169,6 @@ public:
int* _nextStartNode;
int* getVariable(int idx);
- void get(int id);
- void run(int id);
void stop();
void exportPointer(int *val);
void exportValue(int val);