]> git.localhorst.tv Git - l2e.git/blob - src/battle/states/SelectSpell.h
added loading callback for type descriptions
[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 "../fwd.h"
12 #include "../../app/State.h"
13 #include "../../geometry/Vector.h"
14
15 namespace battle {
16
17 class SelectSpell
18 : public app::State {
19
20 public:
21         SelectSpell(BattleState *battle, SelectAttackType *parent)
22         : ctrl(0), battle(battle), parent(parent) { }
23
24 public:
25         virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
26         virtual void ExitState(app::Application &ctrl, SDL_Surface *screen);
27         virtual void ResumeState(app::Application &ctrl, SDL_Surface *screen);
28         virtual void PauseState(app::Application &ctrl, SDL_Surface *screen);
29
30         virtual void Resize(int width, int height);
31
32         virtual void HandleEvents(const app::Input &);
33         virtual void UpdateWorld(float deltaT);
34         virtual void Render(SDL_Surface *);
35
36 private:
37         void RenderFrame(SDL_Surface *, const geometry::Vector<int> &offset);
38         void RenderHeadline(SDL_Surface *, const geometry::Vector<int> &offset);
39         void RenderMenu(SDL_Surface *, const geometry::Vector<int> &offset);
40
41 private:
42         app::Application *ctrl;
43         BattleState *battle;
44         SelectAttackType *parent;
45
46 };
47
48 }
49
50 #endif /* BATTLE_SELECTSPELL_H_ */