diff options
author | Paul Gilbert | 2013-12-28 18:37:37 +1100 |
---|---|---|
committer | Paul Gilbert | 2013-12-28 18:37:37 +1100 |
commit | b08e80cd6643b366774551360c7ba9ed611d48e6 (patch) | |
tree | 93a07c8142c220906a3bf033c2d63b3218972422 /engines/voyeur/events.cpp | |
parent | 84752aa27227bc3dde6005f818d4b2a9b21b8b5b (diff) | |
download | scummvm-rg350-b08e80cd6643b366774551360c7ba9ed611d48e6.tar.gz scummvm-rg350-b08e80cd6643b366774551360c7ba9ed611d48e6.tar.bz2 scummvm-rg350-b08e80cd6643b366774551360c7ba9ed611d48e6.zip |
VOYEUR: Implemented evidence display code
Diffstat (limited to 'engines/voyeur/events.cpp')
-rw-r--r-- | engines/voyeur/events.cpp | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp index d622a6d00f..b5643e44e6 100644 --- a/engines/voyeur/events.cpp +++ b/engines/voyeur/events.cpp @@ -213,6 +213,18 @@ void EventsManager::delay(int cycles) { } } +void EventsManager::delayClick(int cycles) { + uint32 totalMilli = cycles * 1000 / GAME_FRAME_RATE; + uint32 delayEnd = g_system->getMillis() + totalMilli; + + while (!_vm->shouldQuit() && g_system->getMillis() < delayEnd + && !_vm->_voy._incriminate) { + g_system->delayMillis(10); + + pollEvents(); + } +} + void EventsManager::pollEvents() { checkForNextFrameCounter(); @@ -370,6 +382,10 @@ void EventsManager::fadeIntFunc() { warning("TODO"); } +void EventsManager::deleteIntNode(IntNode *node) { + _intNodes.remove(node); +} + void EventsManager::vInitColor() { _fadeIntNode._intFunc = &EventsManager::vDoFadeInt; _cycleIntNode._intFunc = &EventsManager::vDoCycleInt; @@ -539,6 +555,10 @@ void EventsManager::addComputerEventEnd(int v) { ++_vm->_voy._eventCount; } +void EventsManager::stopEvidDim() { + deleteIntNode(&_evIntNode); +} + Common::String EventsManager::getEvidString(int eventIndex) { assert(eventIndex <= _vm->_voy._eventCount); VoyeurEvent &e = _vm->_voy._events[eventIndex]; |