aboutsummaryrefslogtreecommitdiff
path: root/engines/voyeur/events.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-01-05 20:56:14 -0500
committerPaul Gilbert2014-01-05 20:56:14 -0500
commit1fb73446e3358a2fe045647c8cb5d1b621d43ce7 (patch)
treef2827d5ef343c4557d82d2eff8c95a1ce4d4f603 /engines/voyeur/events.cpp
parentc884d5bf1488db9d05b0afb0088768a97f6b1b52 (diff)
downloadscummvm-rg350-1fb73446e3358a2fe045647c8cb5d1b621d43ce7.tar.gz
scummvm-rg350-1fb73446e3358a2fe045647c8cb5d1b621d43ce7.tar.bz2
scummvm-rg350-1fb73446e3358a2fe045647c8cb5d1b621d43ce7.zip
VOYEUR: Clean up of some of the startup code
Diffstat (limited to 'engines/voyeur/events.cpp')
-rw-r--r--engines/voyeur/events.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/voyeur/events.cpp b/engines/voyeur/events.cpp
index 95e3047f8d..b96ce6796e 100644
--- a/engines/voyeur/events.cpp
+++ b/engines/voyeur/events.cpp
@@ -66,6 +66,21 @@ 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;