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