]> git.localhorst.tv Git - l2e.git/blob - src/map/TransitionState.h
0dfa7cf5e1d7aed97cec1c64ef6fa5b9f2e7abd5
[l2e.git] / src / map / TransitionState.h
1 /*
2  * TransitionState.h
3  *
4  *  Created on: Oct 7, 2012
5  *      Author: holy
6  */
7
8 #ifndef MAP_TRANSITIONSTATE_H_
9 #define MAP_TRANSITIONSTATE_H_
10
11 #include "fwd.h"
12 #include "../app/State.h"
13 #include "../geometry/Vector.h"
14
15 namespace map {
16
17 class TransitionState
18 : public app::State {
19
20 public:
21         TransitionState(MapState *, Map *, const geometry::Vector<int> &);
22         virtual ~TransitionState() { }
23
24 public:
25         virtual void HandleEvents(const app::Input &);
26         virtual void UpdateWorld(float deltaT);
27         virtual void Render(SDL_Surface *);
28
29 private:
30         virtual void OnEnterState(app::Application &ctrl, SDL_Surface *screen);
31         virtual void OnExitState(app::Application &ctrl, SDL_Surface *screen);
32         virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
33         virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
34
35         virtual void OnResize(int width, int height);
36
37 private:
38         app::Application *ctrl;
39         MapState *ms;
40         Map *map;
41         const geometry::Vector<int> &coordinates;
42
43 };
44
45 }
46
47 #endif /* MAP_TRANSITIONSTATE_H_ */