X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FBattleState.h;h=52238ebe5d3594b964cd656aa10bd5094e793e51;hb=4a1816af30dcfe53181a25355bd51cc7b24a83f1;hp=b88bae3b30b8a7151d45c3db34041ac4ac8b6fcb;hpb=5ef75aee810e5a687fae24e3f95886241e36efda;p=l2e.git diff --git a/src/battle/BattleState.h b/src/battle/BattleState.h index b88bae3..52238eb 100644 --- a/src/battle/BattleState.h +++ b/src/battle/BattleState.h @@ -10,30 +10,45 @@ #include "Monster.h" #include "../app/State.h" +#include "../geometry/Point.h" #include #include namespace battle { +class PartyLayout; + class BattleState : public app::State { public: - explicit BattleState(SDL_Surface *background) - : background(background) { } + BattleState(SDL_Surface *background, const PartyLayout &monstersLayout) + : background(background) + , 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 *); private: SDL_Surface *background; + const PartyLayout *monstersLayout; + std::vector > monsterPositions; std::vector monsters; + int width; + int height; };