aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/true_talk
diff options
context:
space:
mode:
authorPaul Gilbert2016-04-29 20:02:20 -0400
committerPaul Gilbert2016-07-10 16:37:34 -0400
commite47494a4894301cf4034c6aad4abd65f45b38eca (patch)
tree8d75cdb1ca2ff8cd2f0d4d7c09b5310f137f7b35 /engines/titanic/true_talk
parentd6b84cd9e16ac584c5b57b1b94e1d071c30060ce (diff)
downloadscummvm-rg350-e47494a4894301cf4034c6aad4abd65f45b38eca.tar.gz
scummvm-rg350-e47494a4894301cf4034c6aad4abd65f45b38eca.tar.bz2
scummvm-rg350-e47494a4894301cf4034c6aad4abd65f45b38eca.zip
TITANIC: Implement TrueTalk script retrieval
Diffstat (limited to 'engines/titanic/true_talk')
-rw-r--r--engines/titanic/true_talk/true_talk_manager.cpp23
-rw-r--r--engines/titanic/true_talk/true_talk_manager.h5
2 files changed, 28 insertions, 0 deletions
diff --git a/engines/titanic/true_talk/true_talk_manager.cpp b/engines/titanic/true_talk/true_talk_manager.cpp
index 03f8ac5b3e..b97b51931c 100644
--- a/engines/titanic/true_talk/true_talk_manager.cpp
+++ b/engines/titanic/true_talk/true_talk_manager.cpp
@@ -195,4 +195,27 @@ void CTrueTalkManager::fn1(CTreeItem *item, int val2, int val3) {
warning("CTrueTalkManager::fn1");
}
+TTNamedScript *CTrueTalkManager::getTalker(const CString &name) {
+ if (name.contains("Doorbot"))
+ return _scripts.getNamedScript(104);
+ else if (name.contains("DeskBot"))
+ return _scripts.getNamedScript(103);
+ else if (name.contains("LiftBot"))
+ return _scripts.getNamedScript(105);
+ else if (name.contains("Parrot"))
+ return _scripts.getNamedScript(107);
+ else if (name.contains("BarBot"))
+ return _scripts.getNamedScript(100);
+ else if (name.contains("ChatterBot"))
+ return _scripts.getNamedScript(102);
+ else if (name.contains("BellBot"))
+ return _scripts.getNamedScript(101);
+ else if (name.contains("MaitreD"))
+ return _scripts.getNamedScript(112);
+ else if (name.contains("Succubus") || name.contains("Sub"))
+ return _scripts.getNamedScript(111);
+
+ return nullptr;
+}
+
} // End of namespace Titanic
diff --git a/engines/titanic/true_talk/true_talk_manager.h b/engines/titanic/true_talk/true_talk_manager.h
index 2e366a6a35..9da1c06242 100644
--- a/engines/titanic/true_talk/true_talk_manager.h
+++ b/engines/titanic/true_talk/true_talk_manager.h
@@ -113,6 +113,11 @@ public:
void update2();
void fn1(CTreeItem *item, int val2, int val3);
+
+ /**
+ * Return a TrueTalk talker/script
+ */
+ TTNamedScript *getTalker(const CString &name);
};
} // End of namespace Titanic