aboutsummaryrefslogtreecommitdiff
path: root/gob/timer.h
diff options
context:
space:
mode:
authorEugene Sandulenko2006-01-03 23:14:39 +0000
committerEugene Sandulenko2006-01-03 23:14:39 +0000
commitfd8ac69fc45fb346a931f61701e8aec04278159b (patch)
treefc4ca73bf00b17f7c42569a789baf0f4e64a91c3 /gob/timer.h
parentf046a14bb22f1d6c138ed82efa03d5ff89ae85e0 (diff)
downloadscummvm-rg350-fd8ac69fc45fb346a931f61701e8aec04278159b.tar.gz
scummvm-rg350-fd8ac69fc45fb346a931f61701e8aec04278159b.tar.bz2
scummvm-rg350-fd8ac69fc45fb346a931f61701e8aec04278159b.zip
Patch #1395615 "GobEngine code wrapped in classes". With some cosmetic changes.
svn-id: r19899
Diffstat (limited to 'gob/timer.h')
-rw-r--r--gob/timer.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/gob/timer.h b/gob/timer.h
index ca0a8b49b3..5b7e77c2b4 100644
--- a/gob/timer.h
+++ b/gob/timer.h
@@ -24,15 +24,18 @@
namespace Gob {
-typedef void (* TickHandler) (void);
+class GTimer {
+public:
+ typedef void (* TickHandler) (void);
-void timer_enableTimer(void);
-void timer_disableTimer(void);
-void timer_setHandler(void);
-void timer_restoreHandler(void);
-void timer_addTicks(int16 ticks);
-void timer_setTickHandler(TickHandler handler);
-int32 timer_getTicks(void);
+ void enableTimer(void);
+ void disableTimer(void);
+ void setHandler(void);
+ void restoreHandler(void);
+ void addTicks(int16 ticks);
+ void setTickHandler(TickHandler handler);
+ int32 getTicks(void);
+};
} // End of namespace Gob