X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FApplication.h;h=b7b0001f7bbbf874a193f7a8dbaeb0e2cd50a07a;hb=2a1d9169e1f6c2dfe0f93ed40d5fb68d3da342af;hp=5e9e88838dfb05db9ae0dc4d11dc64dacd8b7275;hpb=25d7499f7923291d7287123320e7563a367e92e7;p=l2e.git diff --git a/src/app/Application.h b/src/app/Application.h index 5e9e888..b7b0001 100644 --- a/src/app/Application.h +++ b/src/app/Application.h @@ -8,7 +8,9 @@ #ifndef APP_APPLICATION_H_ #define APP_APPLICATION_H_ +#include "fwd.h" #include "Input.h" +#include "Timer.h" #include "../sdl/InitScreen.h" #include @@ -18,8 +20,6 @@ namespace app { -class State; - class Application { public: @@ -40,6 +40,7 @@ public: void Quit(); Input &Buttons() { return input; } const Input &Buttons() const { return input; } + Timers &GlobalTimers() { return globalTimers; } private: struct StateCommand { @@ -67,6 +68,7 @@ private: sdl::InitScreen *screen; std::stack states; std::queue stateChanges; + Timers globalTimers; Input input; Uint32 last;