]> git.localhorst.tv Git - l2e.git/blob - src/battle/states/RunState.h
added escape title frame, text, and font
[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 "../../app/State.h"
12
13 #include "../../geometry/Vector.h"
14
15 namespace battle {
16
17 class BattleState;
18
19 class RunState
20 : public app::State {
21
22 public:
23         explicit RunState(BattleState *battle)
24         : ctrl(0), battle(battle){ }
25
26 public:
27         virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
28         virtual void ExitState(app::Application &ctrl, SDL_Surface *screen);
29         virtual void ResumeState(app::Application &ctrl, SDL_Surface *screen);
30         virtual void PauseState(app::Application &ctrl, SDL_Surface *screen);
31
32         virtual void Resize(int width, int height);
33
34         virtual void HandleEvents(const app::Input &);
35         virtual void UpdateWorld(float deltaT);
36         virtual void Render(SDL_Surface *);
37
38 private:
39         void RenderTitleBar(SDL_Surface *screen, const geometry::Vector<int> &offset);
40
41 private:
42         app::Application *ctrl;
43         BattleState *battle;
44         app::Timer<Uint32> timer;
45
46 };
47
48 }
49
50 #endif /* BATTLE_RUNSTATE_H_ */