4 * Created on: Aug 5, 2012
8 #ifndef BATTLE_BATTLESTATE_H_
9 #define BATTLE_BATTLESTATE_H_
12 #include "../app/State.h"
13 #include "../geometry/Point.h"
26 BattleState(SDL_Surface *background, const PartyLayout &monstersLayout, const PartyLayout &heroesLayout)
27 : background(background)
28 , monstersLayout(&monstersLayout)
29 , heroesLayout(&heroesLayout) { }
32 void AddMonster(const Monster &);
35 virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
36 virtual void ExitState();
38 virtual void Resize(int width, int height);
40 virtual void HandleEvent(const SDL_Event &);
41 virtual void UpdateWorld(float deltaT);
42 virtual void Render(SDL_Surface *);
45 SDL_Surface *background;
46 const PartyLayout *monstersLayout;
47 const PartyLayout *heroesLayout;
48 std::vector<geometry::Point<int> > monsterPositions;
49 std::vector<geometry::Point<int> > heroesPositions;
50 std::vector<Monster> monsters;
56 #endif /* BATTLE_BATTLESTATE_H_ */