]> git.localhorst.tv Git - l2e.git/blob - src/battle/states/SelectIkari.h
254da726baa71831fac9fcf7713bf1d83dd362c3
[l2e.git] / src / battle / states / SelectIkari.h
1 #ifndef BATTLE_SELECTIKARI_H_
2 #define BATTLE_SELECTIKARI_H_
3
4 namespace battle {
5         class BattleState;
6         class SelectAttackType;
7 }
8
9 #include "../../app/State.h"
10 #include "../../math/Vector.h"
11
12 namespace battle {
13
14 // TODO: looks like item, spell, and ikari select can be merged into one class
15 class SelectIkari
16 : public app::State {
17
18 public:
19         SelectIkari(BattleState *battle, SelectAttackType *parent)
20         : battle(battle), parent(parent) { }
21
22 public:
23         virtual void HandleEvents(const app::Input &);
24         virtual void UpdateWorld(Uint32 deltaT);
25         virtual void Render(SDL_Surface *);
26
27 private:
28         virtual void OnEnterState(SDL_Surface *screen);
29         virtual void OnExitState(SDL_Surface *screen);
30         virtual void OnResumeState(SDL_Surface *screen);
31         virtual void OnPauseState(SDL_Surface *screen);
32
33         virtual void OnResize(int width, int height);
34
35 private:
36         void RenderFrame(SDL_Surface *);
37         void RenderHeadline(SDL_Surface *);
38         void RenderMenu(SDL_Surface *);
39
40 private:
41         BattleState *battle;
42         SelectAttackType *parent;
43         math::Vector<int> framePosition;
44         math::Vector<int> frameSize;
45         math::Vector<int> headlinePosition;
46         math::Vector<int> menuPosition;
47
48 };
49
50 }
51
52 #endif