]> git.localhorst.tv Git - l2e.git/blob - src/battle/states/RunState.h
cached some of the battle coordinates
[l2e.git] / src / battle / states / RunState.h
1 #ifndef BATTLE_RUNSTATE_H_
2 #define BATTLE_RUNSTATE_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 RunState
14 : public app::State {
15
16 public:
17         explicit RunState(BattleState *battle)
18         : battle(battle){ }
19
20 public:
21
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 RenderTitleBar(SDL_Surface *screen);
36
37 private:
38         BattleState *battle;
39         app::Timer<Uint32> timer;
40         math::Vector<int> framePosition;
41         math::Vector<int> frameSize;
42         math::Vector<int> textPosition;
43
44 };
45
46 }
47
48 #endif