]> git.localhorst.tv Git - l2e.git/blob - src/battle/states/SelectAttackType.h
split battle state into (so far) 2 states
[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 #include "../../app/State.h"
12 #include "../../geometry/Vector.h"
13
14 namespace battle {
15
16 class AttackTypeMenu;
17 class BattleState;
18
19 class SelectAttackType
20 : public app::State {
21
22 public:
23         explicit SelectAttackType(BattleState *battle)
24         : ctrl(0), battle(battle) { }
25         ~SelectAttackType() { }
26
27 public:
28         virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
29         virtual void ExitState();
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         void RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset);
39
40 private:
41         app::Application *ctrl;
42         BattleState *battle;
43
44 };
45
46 }
47 #endif /* BATTLE_SELECTATTACKTYPE_H_ */