diff options
author | Paul Gilbert | 2016-06-27 21:26:00 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-07-15 19:25:36 -0400 |
commit | a1c181f94945633300a9e9c4f657bb654abad98c (patch) | |
tree | 85c5c9ff8023349d694b971b0e81f50b9f522621 /engines/titanic/npcs | |
parent | 0e8148207070e92a5234e5c0a4e05fe401901736 (diff) | |
download | scummvm-rg350-a1c181f94945633300a9e9c4f657bb654abad98c.tar.gz scummvm-rg350-a1c181f94945633300a9e9c4f657bb654abad98c.tar.bz2 scummvm-rg350-a1c181f94945633300a9e9c4f657bb654abad98c.zip |
TITANIC: Adding CGameObject methods
Diffstat (limited to 'engines/titanic/npcs')
-rw-r--r-- | engines/titanic/npcs/true_talk_npc.cpp | 4 | ||||
-rw-r--r-- | engines/titanic/npcs/true_talk_npc.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/engines/titanic/npcs/true_talk_npc.cpp b/engines/titanic/npcs/true_talk_npc.cpp index 0295826eb5..c989aa3bd7 100644 --- a/engines/titanic/npcs/true_talk_npc.cpp +++ b/engines/titanic/npcs/true_talk_npc.cpp @@ -205,6 +205,10 @@ int CTrueTalkNPC::startAnimTimer(const CString &action, uint firstDuration, uint return timer->_id; } +void CTrueTalkNPC::stopAnimTimer(int id) { + getGameManager()->stopTimer(id); +} + void CTrueTalkNPC::setView(CViewItem *view) { CTrueTalkManager *talkManager = getGameManager()->getTalkManager(); if (talkManager) diff --git a/engines/titanic/npcs/true_talk_npc.h b/engines/titanic/npcs/true_talk_npc.h index b13841b742..23613041d0 100644 --- a/engines/titanic/npcs/true_talk_npc.h +++ b/engines/titanic/npcs/true_talk_npc.h @@ -67,6 +67,11 @@ protected: * Start an animation timer */ int startAnimTimer(const CString &action, uint firstDuration, uint duration); + + /** + * Stop an animation timer + */ + void stopAnimTimer(int id); public: CLASSDEF CTrueTalkNPC(); |