]> git.localhorst.tv Git - l2e.git/blobdiff - src/app/Application.h
added timer facility
[l2e.git] / src / app / Application.h
index 5e9e88838dfb05db9ae0dc4d11dc64dacd8b7275..cf1261b28f1a8c8799c3ce8aa2a5217af9ef3ab2 100644 (file)
@@ -9,6 +9,7 @@
 #define APP_APPLICATION_H_
 
 #include "Input.h"
+#include "Timer.h"
 #include "../sdl/InitScreen.h"
 
 #include <stack>
@@ -40,6 +41,7 @@ public:
        void Quit();
        Input &Buttons() { return input; }
        const Input &Buttons() const { return input; }
+       Timers<Uint32> &GlobalTimers() { return globalTimers; }
 
 private:
        struct StateCommand {
@@ -67,6 +69,7 @@ private:
        sdl::InitScreen *screen;
        std::stack<State *> states;
        std::queue<StateCommand> stateChanges;
+       Timers<Uint32> globalTimers;
        Input input;
        Uint32 last;