aboutsummaryrefslogtreecommitdiff
path: root/common/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/timer.h')
-rw-r--r--common/timer.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/common/timer.h b/common/timer.h
index d575b73a4c..00a1a2f6b1 100644
--- a/common/timer.h
+++ b/common/timer.h
@@ -22,24 +22,20 @@
#define TIMER_H
#include "scummsys.h"
+#include "engine.h"
#define MAX_TIMERS 5
-class Scumm;
-
-typedef void (*TimerProc)(Scumm *);
+typedef void (*TimerProc)(void *);
#ifdef __MORPHOS__
#include "morphos_timer.h"
#else
-class OSystem;
-
class Timer {
private:
- OSystem *_osystem;
- Scumm *_scumm;
+ Engine *_engine;
bool _initialized;
bool _timerRunning;
void *_timerHandler;
@@ -53,7 +49,7 @@ private:
} _timerSlots[MAX_TIMERS];
public:
- Timer(Scumm *system);
+ Timer(Engine *engine);
~Timer();
int handler(int *t);