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