]> git.localhorst.tv Git - l2e.git/blob - src/battle/states/SelectSpell.h
added spell selection battle state
[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 namespace battle {
14
15 class BattleState;
16 class SelectAttackType;
17
18 class SelectSpell
19 : public app::State {
20
21 public:
22         SelectSpell(BattleState *battle, SelectAttackType *parent)
23         : ctrl(0), battle(battle), parent(parent) { }
24
25 public:
26         virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
27         virtual void ExitState(app::Application &ctrl, SDL_Surface *screen);
28         virtual void ResumeState(app::Application &ctrl, SDL_Surface *screen);
29         virtual void PauseState(app::Application &ctrl, SDL_Surface *screen);
30
31         virtual void Resize(int width, int height);
32
33         virtual void HandleInput(const app::Input &);
34         virtual void UpdateWorld(float deltaT);
35         virtual void Render(SDL_Surface *);
36
37 private:
38         app::Application *ctrl;
39         BattleState *battle;
40         SelectAttackType *parent;
41
42 };
43
44 }
45
46 #endif /* BATTLE_SELECTSPELL_H_ */