]> git.localhorst.tv Git - l2e.git/blob - src/battle/states/SelectSpell.h
cached some of the battle coordinates
[l2e.git] / src / battle / states / SelectSpell.h
1 #ifndef BATTLE_SELECTSPELL_H_
2 #define BATTLE_SELECTSPELL_H_
3
4 namespace battle {
5         class BattleState;
6         class SelectAttackType;
7 }
8
9 #include "../../app/State.h"
10 #include "../../math/Vector.h"
11
12 namespace battle {
13
14 class SelectSpell
15 : public app::State {
16
17 public:
18         SelectSpell(BattleState *battle, SelectAttackType *parent)
19         : battle(battle), parent(parent) { }
20
21 public:
22         virtual void HandleEvents(const app::Input &);
23         virtual void UpdateWorld(Uint32 deltaT);
24         virtual void Render(SDL_Surface *);
25
26 private:
27         virtual void OnEnterState(SDL_Surface *screen);
28         virtual void OnExitState(SDL_Surface *screen);
29         virtual void OnResumeState(SDL_Surface *screen);
30         virtual void OnPauseState(SDL_Surface *screen);
31
32         virtual void OnResize(int width, int height);
33
34 private:
35         void RenderFrame(SDL_Surface *);
36         void RenderHeadline(SDL_Surface *);
37         void RenderMenu(SDL_Surface *);
38
39 private:
40         BattleState *battle;
41         SelectAttackType *parent;
42         math::Vector<int> framePosition;
43         math::Vector<int> frameSize;
44         math::Vector<int> headlinePosition;
45         math::Vector<int> menuPosition;
46
47 };
48
49 }
50
51 #endif