]> git.localhorst.tv Git - l2e.git/blob - src/battle/states/SelectSpell.h
03401c6bcbefef7557025059e4ec4f61b587ba5d
[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 namespace battle {
12         class BattleState;
13         class SelectAttackType;
14 }
15 namespace math {
16         template<class>
17         class Vector;
18 }
19
20 #include "../../app/State.h"
21
22 namespace battle {
23
24 class SelectSpell
25 : public app::State {
26
27 public:
28         SelectSpell(BattleState *battle, SelectAttackType *parent)
29         : battle(battle), parent(parent) { }
30
31 public:
32         virtual void HandleEvents(const app::Input &);
33         virtual void UpdateWorld(Uint32 deltaT);
34         virtual void Render(SDL_Surface *);
35
36 private:
37         virtual void OnEnterState(SDL_Surface *screen);
38         virtual void OnExitState(SDL_Surface *screen);
39         virtual void OnResumeState(SDL_Surface *screen);
40         virtual void OnPauseState(SDL_Surface *screen);
41
42         virtual void OnResize(int width, int height);
43
44 private:
45         void RenderFrame(SDL_Surface *, const math::Vector<int> &offset);
46         void RenderHeadline(SDL_Surface *, const math::Vector<int> &offset);
47         void RenderMenu(SDL_Surface *, const math::Vector<int> &offset);
48
49 private:
50         BattleState *battle;
51         SelectAttackType *parent;
52
53 };
54
55 }
56
57 #endif /* BATTLE_SELECTSPELL_H_ */