]> git.localhorst.tv Git - l2e.git/blob - src/battle/states/SelectMoveAction.h
66f3642c096ecb2e68af538ffd88249e329683b6
[l2e.git] / src / battle / states / SelectMoveAction.h
1 /*
2  * SelectMoveAction.h
3  *
4  *  Created on: Aug 7, 2012
5  *      Author: holy
6  */
7
8 #ifndef BATTLE_SELECTMOVEACTION_H_
9 #define BATTLE_SELECTMOVEACTION_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 SelectMoveAction
24 : public app::State {
25
26 public:
27         explicit SelectMoveAction(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
53 #endif /* BATTLE_SELECTMOVEACTION_H_ */