diff options
Diffstat (limited to 'inc/sdl')
-rw-r--r-- | inc/sdl/event.hpp | 4 | ||||
-rw-r--r-- | inc/sdl/timer.hpp | 30 |
2 files changed, 18 insertions, 16 deletions
diff --git a/inc/sdl/event.hpp b/inc/sdl/event.hpp index 3a0a868..c3536cc 100644 --- a/inc/sdl/event.hpp +++ b/inc/sdl/event.hpp @@ -15,8 +15,8 @@ class Event int gEventType(); private: - bool run; - SDL_Event v; + bool run; + SDL_Event v; }; #endif diff --git a/inc/sdl/timer.hpp b/inc/sdl/timer.hpp index d4e46e8..3bcaaaa 100644 --- a/inc/sdl/timer.hpp +++ b/inc/sdl/timer.hpp @@ -5,21 +5,23 @@ class Timer { - public: - Timer(); - void Start(); - void Stop(); - void Pause(); - void unPause(); - int getTicks(); - bool isStarted(){return started;}; - bool isPaused(){return paused;}; + public: + Timer(); - private: - int startTicks; - int pausedTicks; - bool paused; - bool started; + void Start(); + void Stop(); + void Pause(); + void unPause(); + + int getTicks(); + bool getStarted(){return started;}; + bool getPaused(){return paused;}; + + private: + int startTicks; + int pausedTicks; + bool paused; + bool started; }; #endif |