From 7ac4f7c3aa26831f771418472472735cf73bade9 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Mon, 11 Apr 2016 20:08:49 -0400 Subject: TITANIC: Implementing CComputerScreen messages --- engines/titanic/core/game_object.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'engines/titanic/core/game_object.cpp') 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(); -- cgit v1.2.3