]> git.localhorst.tv Git - l2e.git/blob - src/map/TransitionState.cpp
removed lazy fwd headers
[l2e.git] / src / map / TransitionState.cpp
1 #include "TransitionState.h"
2
3 #include "MapState.h"
4 #include "../app/Application.h"
5 #include "../math/Vector.h"
6
7 using app::Application;
8 using app::State;
9 using app::Input;
10 using math::Vector;
11
12 namespace map {
13
14 TransitionState::TransitionState(MapState *ms, Map *map, const Vector<int> &coordinates)
15 : ms(ms)
16 , map(map)
17 , coordinates(coordinates) {
18
19 }
20
21 void TransitionState::OnEnterState(SDL_Surface *screen) {
22
23 }
24
25 void TransitionState::OnExitState(SDL_Surface *screen) {
26
27 }
28
29 void TransitionState::OnResumeState(SDL_Surface *screen) {
30
31 }
32
33 void TransitionState::OnPauseState(SDL_Surface *screen) {
34
35 }
36
37
38 void TransitionState::OnResize(int width, int height) {
39
40 }
41
42
43 void TransitionState::HandleEvents(const Input &input) {
44         ms->Transition(map, coordinates);
45         Ctrl().PopState();
46 }
47
48
49 void TransitionState::UpdateWorld(Uint32 deltaT) {
50
51 }
52
53 void TransitionState::Render(SDL_Surface *screen) {
54 //      ms->Render(screen);
55 }
56
57 }