diff options
author | Eugene Sandulenko | 2006-01-03 23:14:39 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-01-03 23:14:39 +0000 |
commit | fd8ac69fc45fb346a931f61701e8aec04278159b (patch) | |
tree | fc4ca73bf00b17f7c42569a789baf0f4e64a91c3 /gob/timer.h | |
parent | f046a14bb22f1d6c138ed82efa03d5ff89ae85e0 (diff) | |
download | scummvm-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.h | 19 |
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 |