]> git.localhorst.tv Git - l2e.git/blob - src/battle/BattleState.h
added simple sprite class
[l2e.git] / src / battle / BattleState.h
1 /*
2  * BattleState.h
3  *
4  *  Created on: Aug 5, 2012
5  *      Author: holy
6  */
7
8 #ifndef BATTLE_BATTLESTATE_H_
9 #define BATTLE_BATTLESTATE_H_
10
11 #include "Monster.h"
12 #include "../app/State.h"
13
14 #include <vector>
15 #include <SDL.h>
16
17 namespace battle {
18
19 class BattleState
20 : public app::State {
21
22 public:
23         explicit BattleState(SDL_Surface *background)
24         : background(background) { }
25
26 public:
27         virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
28         virtual void ExitState();
29
30         virtual void HandleEvent(const SDL_Event &);
31         virtual void UpdateWorld(float deltaT);
32         virtual void Render(SDL_Surface *);
33
34 private:
35         SDL_Surface *background;
36         std::vector<Monster> monsters;
37
38 };
39
40 }
41
42 #endif /* BATTLE_BATTLESTATE_H_ */