#ifndef APP_APPLICATION_H_
#define APP_APPLICATION_H_
+#include "Input.h"
#include "../sdl/InitScreen.h"
#include <stack>
-#include <SDL/SDL.h>
+#include <SDL.h>
namespace app {
class Application {
public:
- explicit Application(SDL_Surface *screen, State *initialState);
+ Application(sdl::InitScreen *screen, State *initialState);
~Application(void);
private:
Application(const Application &);
void PushState(State *);
void PopState(void);
void Quit(void);
+ Input &Buttons() { return input; }
+ const Input &Buttons() const { return input; }
private:
State *CurrentState(void);
void Render(void);
private:
- SDL_Surface *screen;
+ sdl::InitScreen *screen;
std::stack<State *> states;
+ Input input;
Uint32 last;
};