diff options
author | Paul Gilbert | 2016-06-27 13:43:27 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-15 19:25:27 -0400 |
commit | 3988a9eeee98efdd3b297cde76640416fc13f3ca (patch) | |
tree | 95669cf5dec9a191985b6f5f21e8aa4d4e686032 /engines/titanic/npcs | |
parent | c87a6e212aa190a7473722dfdd34cf794105d265 (diff) | |
download | scummvm-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.cpp | 7 | ||||
-rw-r--r-- | engines/titanic/npcs/true_talk_npc.h | 5 |
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 |