From 540d081a6fd4daa31f746ddf30ccc91fb88ea04b Mon Sep 17 00:00:00 2001 From: athrxx Date: Sun, 11 Dec 2011 01:57:03 +0100 Subject: KYRA: (EOB) - initial code base commit --- engines/kyra/timer_lol.cpp | 52 ---------------------------------------------- 1 file changed, 52 deletions(-) (limited to 'engines/kyra/timer_lol.cpp') diff --git a/engines/kyra/timer_lol.cpp b/engines/kyra/timer_lol.cpp index 3221556e6d..5a6677a4f6 100644 --- a/engines/kyra/timer_lol.cpp +++ b/engines/kyra/timer_lol.cpp @@ -47,58 +47,6 @@ void LoLEngine::setupTimers() { _timer->addTimer(11, TimerV2(timerFadeMessageText), 360, false); } -void LoLEngine::enableTimer(int id) { - _timer->enable(id); - _timer->setCountdown(id, _timer->getDelay(id)); -} - -void LoLEngine::enableSysTimer(int sysTimer) { - if (sysTimer != 2) - return; - - for (int i = 0; i < _numClock2Timers; i++) - _timer->pauseSingleTimer(_clock2Timers[i], false); -} - -void LoLEngine::disableSysTimer(int sysTimer) { - if (sysTimer != 2) - return; - - for (int i = 0; i < _numClock2Timers; i++) - _timer->pauseSingleTimer(_clock2Timers[i], true); -} - -void LoLEngine::timerProcessDoors(int timerNum) { - for (int i = 0; i < 3; i++) { - uint16 b = _openDoorState[i].block; - if (!b) - continue; - - int v = _openDoorState[i].state; - int c = _openDoorState[i].wall; - - _levelBlockProperties[b].walls[c] += v; - _levelBlockProperties[b].walls[c ^ 2] += v; - - int snd = 31; - - int flg = _wllWallFlags[_levelBlockProperties[b].walls[c]]; - if (flg & 0x20) - snd = 33; - else if (v == -1) - snd = 32; - - if (!(_updateFlags & 1)) { - snd_processEnvironmentalSoundEffect(snd, b); - if (!checkSceneUpdateNeed(b)) - updateEnvironmentalSfx(0); - } - - if (flg & 0x30) - _openDoorState[i].block = 0; - } -} - void LoLEngine::timerProcessMonsters(int timerNum) { for (int i = timerNum & 0x0f; i < 30; i += 2) updateMonster(&_monsters[i]); -- cgit v1.2.3