X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FState.h;h=efee32ba2ab0f3a3001dbbe9944ab9d8f44a58c3;hb=4a1816af30dcfe53181a25355bd51cc7b24a83f1;hp=471b44bd99ff0ba03025560fa95baabc9882039f;hpb=59d528aaa84a2210b0a357887853f534cfbea156;p=l2e.git diff --git a/src/app/State.h b/src/app/State.h index 471b44b..efee32b 100644 --- a/src/app/State.h +++ b/src/app/State.h @@ -8,7 +8,7 @@ #ifndef APP_APPLICATIONSTATE_H_ #define APP_APPLICATIONSTATE_H_ -#include +#include namespace app { @@ -25,6 +25,9 @@ public: virtual void EnterState(Application &ctrl, SDL_Surface *screen) = 0; virtual void ExitState() = 0; + /// adapt the state's graphics to given dimensions + virtual void Resize(int width, int height) = 0; + virtual void HandleEvent(const SDL_Event &) = 0; virtual void UpdateWorld(float deltaT) = 0; virtual void Render(SDL_Surface *) = 0;