4 * Created on: Apr 8, 2012
8 #ifndef APP_APPLICATION_H_
9 #define APP_APPLICATION_H_
12 #include "../sdl/InitScreen.h"
26 Application(sdl::InitScreen *screen, State *initialState);
29 Application(const Application &);
30 Application &operator =(const Application &);
37 void ChangeState(State *);
38 void PushState(State *);
41 Input &Buttons() { return input; }
42 const Input &Buttons() const { return input; }
45 State *CurrentState();
47 void RealPushState(State *);
53 void UpdateWorld(Uint32 deltaT);
57 sdl::InitScreen *screen;
58 std::stack<State *> states;
59 std::queue<State *> toPush;
68 #endif /* APP_APPLICATION_H_ */