]> git.localhorst.tv Git - l2e.git/blob - src/battle/states/SelectSpell.h
removed redundant BattleState::ActiveHeroAttackChoice()
[l2e.git] / src / battle / states / SelectSpell.h
1 /*
2  * SelectSpell.h
3  *
4  *  Created on: Aug 8, 2012
5  *      Author: holy
6  */
7
8 #ifndef BATTLE_SELECTSPELL_H_
9 #define BATTLE_SELECTSPELL_H_
10
11 #include "../../app/State.h"
12
13 #include "../../geometry/Vector.h"
14
15 namespace battle {
16
17 class BattleState;
18 class SelectAttackType;
19
20 class SelectSpell
21 : public app::State {
22
23 public:
24         SelectSpell(BattleState *battle, SelectAttackType *parent)
25         : ctrl(0), battle(battle), parent(parent) { }
26
27 public:
28         virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
29         virtual void ExitState(app::Application &ctrl, SDL_Surface *screen);
30         virtual void ResumeState(app::Application &ctrl, SDL_Surface *screen);
31         virtual void PauseState(app::Application &ctrl, SDL_Surface *screen);
32
33         virtual void Resize(int width, int height);
34
35         virtual void HandleEvents(const app::Input &);
36         virtual void UpdateWorld(float deltaT);
37         virtual void Render(SDL_Surface *);
38
39 private:
40         void RenderFrame(SDL_Surface *, const geometry::Vector<int> &offset);
41         void RenderHeadline(SDL_Surface *, const geometry::Vector<int> &offset);
42         void RenderMenu(SDL_Surface *, const geometry::Vector<int> &offset);
43
44 private:
45         app::Application *ctrl;
46         BattleState *battle;
47         SelectAttackType *parent;
48
49 };
50
51 }
52
53 #endif /* BATTLE_SELECTSPELL_H_ */