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