]> git.localhorst.tv Git - l2e.git/blob - src/battle/states/SelectAttackType.h
64a7dbd9414b615ba9cbec40d3c30cb36ac3d283
[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 "../fwd.h"
12 #include "../../app/State.h"
13 #include "../../geometry/Vector.h"
14
15 namespace battle {
16
17 class SelectAttackType
18 : public app::State {
19
20 public:
21         explicit SelectAttackType(BattleState *battle)
22         : battle(battle) { }
23
24 public:
25         virtual void HandleEvents(const app::Input &);
26         virtual void UpdateWorld(float deltaT);
27         virtual void Render(SDL_Surface *);
28
29 private:
30         virtual void OnEnterState(SDL_Surface *screen);
31         virtual void OnExitState(SDL_Surface *screen);
32         virtual void OnResumeState(SDL_Surface *screen);
33         virtual void OnPauseState(SDL_Surface *screen);
34
35         virtual void OnResize(int width, int height);
36
37 private:
38         void RenderMenu(SDL_Surface *screen, const geometry::Vector<int> &offset);
39
40 private:
41         BattleState *battle;
42
43 };
44
45 }
46 #endif /* BATTLE_SELECTATTACKTYPE_H_ */