25 #include "common/scummsys.h" 26 #include "common/serializer.h" 27 #include "voyeur/files.h" 31 #define TOTAL_EVENTS 1000 33 enum VoyeurEventType {
41 enum EventFlag { EVTFLAG_TIME_DISABLED = 1, EVTFLAG_2 = 2, EVTFLAG_8 = 8, EVTFLAG_RECORDING = 0x10,
42 EVTFLAG_40 = 0x40, EVTFLAG_VICTIM_PRESET = 0x80, EVTFLAG_100 = 0x100 };
48 VoyeurEventType _type;
77 for (
int hotspotIdx = 0; hotspotIdx < 20; ++hotspotIdx) {
78 for (
int slotIdx = 0; slotIdx < SLOTS; ++slotIdx) {
79 _min[slotIdx][hotspotIdx] = 9999;
80 _max[slotIdx][hotspotIdx] = 0;
89 for (
int slotIndex = 0; slotIndex < SLOTS; ++slotIndex) {
90 for (
int hotspotIndex = 0; hotspotIndex < 20; ++hotspotIndex) {
91 s.syncAsSint16LE(_min[slotIndex][hotspotIndex]);
92 s.syncAsSint16LE(_max[slotIndex][hotspotIndex]);
101 bool isInRange(
int slotIndex,
int hotspotIndex,
int v)
const {
102 return _min[slotIndex][hotspotIndex] <= v &&
103 v < _max[slotIndex][hotspotIndex];
112 bool _abortInterface;
114 bool _phoneCallsReceived[5];
115 bool _roomHotspotsEnabled[32];
116 bool _victimMurdered;
119 int _audioVisualStartTime;
120 int _audioVisualDuration;
123 int _computerTimeMin;
124 int _computerTimeMax;
132 int _incriminatedVictimNumber;
133 int _murderThreshold;
137 int _totalPhoneCalls;
140 int _vocSecondsOffset;
165 void addEvent(
int hour,
int minute, VoyeurEventType type,
int audioVideoId,
166 int on,
int off,
int dead);
171 void addVideoEventStart();
176 void addVideoEventEnd();
181 void addAudioEventStart();
186 void addAudioEventEnd();
191 void addEvidEventStart(
int v);
196 void addEvidEventEnd(
int totalPages);
201 void addComputerEventStart();
206 void addComputerEventEnd(
int v);
211 void reviewAnEvidEvent(
int eventIndex);
216 void reviewComputerEvent(
int eventIndex);
bool isInRange(int slotIndex, int hotspotIndex, int v) const
Definition: data.h:101
void synchronize(Common::Serializer &s)
Definition: data.h:88
void reset()
Definition: data.h:76
Definition: serializer.h:79
Definition: animation.h:38