]> git.localhorst.tv Git - l2e.git/blob - src/battle/states/RunState.h
added string dimensions calculation functions
[l2e.git] / src / battle / states / RunState.h
1 /*
2  * RunState.h
3  *
4  *  Created on: Aug 10, 2012
5  *      Author: holy
6  */
7
8 #ifndef BATTLE_RUNSTATE_H_
9 #define BATTLE_RUNSTATE_H_
10
11 #include "../fwd.h"
12 #include "../../app/State.h"
13 #include "../../geometry/Vector.h"
14
15 namespace battle {
16
17 class RunState
18 : public app::State {
19
20 public:
21         explicit RunState(BattleState *battle)
22         : battle(battle){ }
23
24 public:
25
26         virtual void HandleEvents(const app::Input &);
27         virtual void UpdateWorld(float deltaT);
28         virtual void Render(SDL_Surface *);
29
30 private:
31         virtual void OnEnterState(SDL_Surface *screen);
32         virtual void OnExitState(SDL_Surface *screen);
33         virtual void OnResumeState(SDL_Surface *screen);
34         virtual void OnPauseState(SDL_Surface *screen);
35
36         virtual void OnResize(int width, int height);
37
38 private:
39         void RenderTitleBar(SDL_Surface *screen, const geometry::Vector<int> &offset);
40
41 private:
42         BattleState *battle;
43         app::Timer<Uint32> timer;
44
45 };
46
47 }
48
49 #endif /* BATTLE_RUNSTATE_H_ */