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