aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/npcs
diff options
context:
space:
mode:
authorPaul Gilbert2016-06-27 13:43:27 -0400
committerPaul Gilbert2016-07-15 19:25:27 -0400
commit3988a9eeee98efdd3b297cde76640416fc13f3ca (patch)
tree95669cf5dec9a191985b6f5f21e8aa4d4e686032 /engines/titanic/npcs
parentc87a6e212aa190a7473722dfdd34cf794105d265 (diff)
downloadscummvm-rg350-3988a9eeee98efdd3b297cde76640416fc13f3ca.tar.gz
scummvm-rg350-3988a9eeee98efdd3b297cde76640416fc13f3ca.tar.bz2
scummvm-rg350-3988a9eeee98efdd3b297cde76640416fc13f3ca.zip
TITANIC: Adding more game object methods
Diffstat (limited to 'engines/titanic/npcs')
-rw-r--r--engines/titanic/npcs/true_talk_npc.cpp7
-rw-r--r--engines/titanic/npcs/true_talk_npc.h5
2 files changed, 12 insertions, 0 deletions
diff --git a/engines/titanic/npcs/true_talk_npc.cpp b/engines/titanic/npcs/true_talk_npc.cpp
index 00b68c2913..0295826eb5 100644
--- a/engines/titanic/npcs/true_talk_npc.cpp
+++ b/engines/titanic/npcs/true_talk_npc.cpp
@@ -211,4 +211,11 @@ void CTrueTalkNPC::setView(CViewItem *view) {
talkManager->start3(this, view);
}
+void CTrueTalkNPC::startTalker(CViewItem *view) {
+ CGameManager *gameManager = getGameManager();
+ if (gameManager)
+ gameManager->getTalkManager()->start4(this, view);
+}
+
+
} // End of namespace Titanic
diff --git a/engines/titanic/npcs/true_talk_npc.h b/engines/titanic/npcs/true_talk_npc.h
index 1a10a0aa9b..b13841b742 100644
--- a/engines/titanic/npcs/true_talk_npc.h
+++ b/engines/titanic/npcs/true_talk_npc.h
@@ -85,6 +85,11 @@ public:
* Set the view for the NPC
*/
void setView(CViewItem *view);
+
+ /**
+ * Start the talker in the given view
+ */
+ void startTalker(CViewItem *view);
};
} // End of namespace Titanic