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; }
53 State *CurrentState();
55 void RealChangeState(State *);
56 void RealPushState(State *);
62 void UpdateWorld(Uint32 deltaT);
66 sdl::InitScreen *screen;
67 std::stack<State *> states;
68 std::queue<StateCommand> stateChanges;
76 #endif /* APP_APPLICATION_H_ */