#ifndef APP_APPLICATION_H_
#define APP_APPLICATION_H_
+#include "fwd.h"
#include "Input.h"
+#include "Timer.h"
#include "../sdl/InitScreen.h"
#include <stack>
namespace app {
-class State;
-
class Application {
public:
void Quit();
Input &Buttons() { return input; }
const Input &Buttons() const { return input; }
+ Timers<Uint32> &GlobalTimers() { return globalTimers; }
private:
struct StateCommand {
sdl::InitScreen *screen;
std::stack<State *> states;
std::queue<StateCommand> stateChanges;
+ Timers<Uint32> globalTimers;
Input input;
Uint32 last;
+ bool inStateChage;
};