4 * Created on: Apr 8, 2012
8 #ifndef APP_APPLICATION_H_
9 #define APP_APPLICATION_H_
12 #include "../sdl/InitScreen.h"
25 Application(sdl::InitScreen *screen, State *initialState);
28 Application(const Application &);
29 Application &operator =(const Application &);
36 void ChangeState(State *);
37 void PushState(State *);
40 Input &Buttons() { return input; }
41 const Input &Buttons() const { return input; }
44 State *CurrentState(void);
45 void RealPushState(State *);
46 void RealPopState(void);
47 void PopAllStates(void);
50 void HandleEvents(void);
51 void UpdateWorld(Uint32 deltaT);
55 sdl::InitScreen *screen;
56 std::stack<State *> states;
64 #endif /* APP_APPLICATION_H_ */