X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.h;h=52238ebe5d3594b964cd656aa10bd5094e793e51;hb=4a1816af30dcfe53181a25355bd51cc7b24a83f1;hp=ccc242512bf87ddbecf25e0656f86d7cb0e1a8fa;hpb=a378f581fb88ce4ca718a18d7cc80d7007ebc66a;p=l2e.git diff --git a/src/battle/BattleState.h b/src/battle/BattleState.h index ccc2425..52238eb 100644 --- a/src/battle/BattleState.h +++ b/src/battle/BattleState.h @@ -25,7 +25,9 @@ class BattleState public: BattleState(SDL_Surface *background, const PartyLayout &monstersLayout) : background(background) - , monstersLayout(&monstersLayout) { } + , monstersLayout(&monstersLayout) + , width(0) + , height(0) { } public: void AddMonster(const Monster &); @@ -34,6 +36,8 @@ public: virtual void EnterState(app::Application &ctrl, SDL_Surface *screen); virtual void ExitState(); + virtual void Resize(int width, int height); + virtual void HandleEvent(const SDL_Event &); virtual void UpdateWorld(float deltaT); virtual void Render(SDL_Surface *); @@ -43,6 +47,8 @@ private: const PartyLayout *monstersLayout; std::vector > monsterPositions; std::vector monsters; + int width; + int height; };