diff options
Diffstat (limited to 'engines/titanic/core/game_object.cpp')
-rw-r--r-- | engines/titanic/core/game_object.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp index c179ed8b50..7e731bdbe7 100644 --- a/engines/titanic/core/game_object.cpp +++ b/engines/titanic/core/game_object.cpp @@ -459,6 +459,14 @@ bool CGameObject::playSound(const CString &name, CProximity &prox) { return false; } +int CGameObject::addTimer(int endVal, uint firstDuration, uint duration) { + CTimeEventInfo *timer = new CTimeEventInfo(g_vm->_events->getTicksCount(), + duration != 0, firstDuration, duration, this, endVal, CString()); + + getGameManager()->addTimer(timer); + return timer->_id; +} + void CGameObject::gotoView(const CString &viewName, const CString &clipName) { CViewItem *newView = parseView(viewName); CGameManager *gameManager = getGameManager(); |