]> git.localhorst.tv Git - l2e.git/blob - src/battle/states/SelectIkari.h
extracted battle logic into a class
[l2e.git] / src / battle / states / SelectIkari.h
1 #ifndef BATTLE_SELECTIKARI_H_
2 #define BATTLE_SELECTIKARI_H_
3
4 namespace battle {
5         class Battle;
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(Battle *battle, SelectAttackType *parent);
20
21 public:
22         virtual void HandleEvents(const app::Input &);
23         virtual void UpdateWorld(Uint32 deltaT);
24         virtual void Render(SDL_Surface *);
25
26 private:
27         virtual void OnEnterState(SDL_Surface *screen);
28         virtual void OnExitState(SDL_Surface *screen);
29         virtual void OnResumeState(SDL_Surface *screen);
30         virtual void OnPauseState(SDL_Surface *screen);
31
32         virtual void OnResize(int width, int height);
33
34 private:
35         void RenderFrame(SDL_Surface *);
36         void RenderHeadline(SDL_Surface *);
37         void RenderMenu(SDL_Surface *);
38
39 private:
40         Battle *battle;
41         SelectAttackType *parent;
42         math::Vector<int> framePosition;
43         math::Vector<int> frameSize;
44         math::Vector<int> headlinePosition;
45         math::Vector<int> menuPosition;
46
47 };
48
49 }
50
51 #endif