diff options
author | Paul Gilbert | 2014-01-06 22:01:36 -0500 |
---|---|---|
committer | Paul Gilbert | 2014-01-06 22:01:36 -0500 |
commit | 2a206ebd7f84b41ba93518a2c003ba67bedf72df (patch) | |
tree | 84a1b758fd98935031e3943d1cdd88567ea42297 /engines/voyeur/events.cpp | |
parent | 6dff1574590c60eab526b7dcc4061ec9f15c0821 (diff) | |
download | scummvm-rg350-2a206ebd7f84b41ba93518a2c003ba67bedf72df.tar.gz scummvm-rg350-2a206ebd7f84b41ba93518a2c003ba67bedf72df.tar.bz2 scummvm-rg350-2a206ebd7f84b41ba93518a2c003ba67bedf72df.zip |
VOYEUR: Moved SVoy and game events to their own file
Diffstat (limited to 'engines/voyeur/events.cpp')
-rw-r--r-- | engines/voyeur/events.cpp | 87 |
1 files changed, 0 insertions, 87 deletions
diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp index f9e150c8a0..ba86ba8f58 100644 --- a/engines/voyeur/events.cpp +++ b/engines/voyeur/events.cpp @@ -66,21 +66,6 @@ IntData::IntData() { /*------------------------------------------------------------------------*/ -void SVoy::addEvent(int hour, int minute, VoyeurEventType type, int videoId, - int on, int off, int dead) { - VoyeurEvent &e = _events[_eventCount++]; - - e._hour = hour; - e._minute = minute; - e._isAM = hour < 12; - e._videoId = videoId; - e._computerOn = on; - e._computerOff = off; - e._dead = dead; -} - -/*------------------------------------------------------------------------*/ - EventsManager::EventsManager(): _intPtr(_gameData), _fadeIntNode(0, 0, 3), _cycleIntNode(0, 0, 3) { _cycleStatus = 0; @@ -597,78 +582,6 @@ void EventsManager::incrementTime(int amt) { mainVoyeurIntFunc(); } -void EventsManager::addVideoEventStart() { - VoyeurEvent &e = _vm->_voy._events[_vm->_voy._eventCount]; - e._hour = _vm->_gameHour; - e._minute = _vm->_gameMinute; - e._isAM = _vm->_voy._isAM; - e._type = EVTYPE_VIDEO; - e._videoId = _vm->_videoId; - e._computerOn = _vm->_voy._vocSecondsOffset; - e._dead = _vm->_eventsManager._videoDead; -} - -void EventsManager::addVideoEventEnd() { - VoyeurEvent &e = _vm->_voy._events[_vm->_voy._eventCount]; - e._computerOff = _vm->_voy._RTVNum - _vm->_voy._field468 - _vm->_voy._vocSecondsOffset; - if (_vm->_voy._eventCount < (TOTAL_EVENTS - 1)) - ++_vm->_voy._eventCount; -} - -void EventsManager::addAudioEventStart() { - VoyeurEvent &e = _vm->_voy._events[_vm->_voy._eventCount]; - e._hour = _vm->_gameHour; - e._minute = _vm->_gameMinute; - e._isAM = _vm->_voy._isAM; - e._type = EVTYPE_AUDIO; - e._videoId = _vm->_videoId; - e._computerOn = _vm->_voy._field47A; - e._dead = _vm->_eventsManager._videoDead; -} - -void EventsManager::addAudioEventEnd() { - VoyeurEvent &e = _vm->_voy._events[_vm->_voy._eventCount]; - e._computerOff = _vm->_voy._RTVNum - _vm->_voy._field468 - _vm->_voy._vocSecondsOffset; - if (_vm->_voy._eventCount < (TOTAL_EVENTS - 1)) - ++_vm->_voy._eventCount; -} - -void EventsManager::addEvidEventStart(int v) { - VoyeurEvent &e = _vm->_voy._events[_vm->_voy._eventCount]; - e._hour = _vm->_gameHour; - e._minute = _vm->_gameMinute; - e._isAM = _vm->_voy._isAM; - e._type = EVTYPE_EVID; - e._videoId = _vm->_videoId; - e._computerOn = _vm->_voy._vocSecondsOffset; - e._dead = _vm->_eventsManager._videoDead; - -} - -void EventsManager::addEvidEventEnd(int dead) { - VoyeurEvent &e = _vm->_voy._events[_vm->_voy._eventCount]; - e._dead = dead; - if (_vm->_voy._eventCount < (TOTAL_EVENTS - 1)) - ++_vm->_voy._eventCount; -} - -void EventsManager::addComputerEventStart() { - VoyeurEvent &e = _vm->_voy._events[_vm->_voy._eventCount]; - e._hour = _vm->_gameHour; - e._minute = _vm->_gameMinute; - e._isAM = _vm->_voy._isAM; - e._type = EVTYPE_COMPUTER; - e._videoId = _vm->_playStampGroupId; - e._computerOn = _vm->_voy._computerTextId; -} - -void EventsManager::addComputerEventEnd(int v) { - VoyeurEvent &e = _vm->_voy._events[_vm->_voy._eventCount]; - e._computerOff = v; - if (_vm->_voy._eventCount < (TOTAL_EVENTS - 1)) - ++_vm->_voy._eventCount; -} - void EventsManager::stopEvidDim() { deleteIntNode(&_evIntNode); } |