aboutsummaryrefslogtreecommitdiff
path: root/engines/lab/lab.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lab/lab.h')
-rw-r--r--engines/lab/lab.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/engines/lab/lab.h b/engines/lab/lab.h
index c1bf4337b9..989def2e1c 100644
--- a/engines/lab/lab.h
+++ b/engines/lab/lab.h
@@ -45,6 +45,8 @@ enum GameFeatures {
GF_WINDOWS_TRIAL = 1 << 1
};
+#define ONESECOND 1000
+
class LabEngine : public Engine {
public:
LabEngine(OSystem *syst, const ADGameDescription *gameDesc);
@@ -64,8 +66,18 @@ public:
LargeSet *_conditions, *_roomsFound;
+ // timing.cpp
+ void getTime(uint32 *secs, uint32 *micros);
+ void addCurTime(uint32 sec, uint32 micros, uint32 *timeSec, uint32 *timeMicros);
+ void anyTimeDiff(uint32 sec1, uint32 micros1, uint32 sec2, uint32 micros2, uint32 *diffSecs, uint32 *diffMicros);
+ void timeDiff(uint32 sec, uint32 micros, uint32 *diffSec, uint32 *diffMicros);
+ void waitForTime(uint32 sec, uint32 micros);
+
private:
uint32 _extraGameFeatures;
+
+ // timing.cpp
+ void microDelay(uint32 secs, uint32 micros);
};
extern LabEngine *g_lab;