4 * Created on: Aug 5, 2012
8 #ifndef BATTLE_BATTLESTATE_H_
9 #define BATTLE_BATTLESTATE_H_
13 #include "../app/State.h"
14 #include "../geometry/Point.h"
27 BattleState(SDL_Surface *background, const PartyLayout &monstersLayout, const PartyLayout &heroesLayout)
28 : background(background)
29 , monstersLayout(&monstersLayout)
30 , heroesLayout(&heroesLayout) { }
33 void AddMonster(const Monster &);
34 void AddHero(const Hero &);
37 virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
38 virtual void ExitState();
40 virtual void Resize(int width, int height);
42 virtual void HandleEvent(const SDL_Event &);
43 virtual void UpdateWorld(float deltaT);
44 virtual void Render(SDL_Surface *);
47 SDL_Surface *background;
48 const PartyLayout *monstersLayout;
49 const PartyLayout *heroesLayout;
50 std::vector<geometry::Point<int> > monsterPositions;
51 std::vector<geometry::Point<int> > heroesPositions;
52 std::vector<Monster> monsters;
53 std::vector<Hero> heroes;
59 #endif /* BATTLE_BATTLESTATE_H_ */