X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.h;h=52238ebe5d3594b964cd656aa10bd5094e793e51;hb=4a1816af30dcfe53181a25355bd51cc7b24a83f1;hp=05bd7c95128ae6352b9360d3b1cc34243aab89a4;hpb=95bfa881f3fa427b67d9ce21e6a10f80f7be5439;p=l2e.git diff --git a/src/battle/BattleState.h b/src/battle/BattleState.h index 05bd7c9..52238eb 100644 --- a/src/battle/BattleState.h +++ b/src/battle/BattleState.h @@ -25,12 +25,19 @@ 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 &); 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 *); @@ -40,6 +47,8 @@ private: const PartyLayout *monstersLayout; std::vector > monsterPositions; std::vector monsters; + int width; + int height; };