]> git.localhorst.tv Git - l2e.git/blob - src/map/TransitionState.cpp
commented headers in app/ directory
[l2e.git] / src / map / TransitionState.cpp
1 /*
2  * TransitionState.cpp
3  *
4  *  Created on: Oct 7, 2012
5  *      Author: holy
6  */
7
8 #include "TransitionState.h"
9
10 #include "MapState.h"
11 #include "../app/Application.h"
12
13 using app::Application;
14 using app::State;
15 using app::Input;
16 using geometry::Vector;
17
18 namespace map {
19
20 TransitionState::TransitionState(MapState *ms, Map *map, const Vector<int> &coordinates)
21 : ctrl(0)
22 , ms(ms)
23 , map(map)
24 , coordinates(coordinates) {
25
26 }
27
28 void TransitionState::EnterState(Application &c, SDL_Surface *screen) {
29         ctrl = &c;
30 }
31
32 void TransitionState::ExitState(Application &, SDL_Surface *screen) {
33
34 }
35
36 void TransitionState::ResumeState(Application &ctrl, SDL_Surface *screen) {
37
38 }
39
40 void TransitionState::PauseState(Application &ctrl, SDL_Surface *screen) {
41
42 }
43
44
45 void TransitionState::Resize(int width, int height) {
46
47 }
48
49
50 void TransitionState::HandleEvents(const Input &input) {
51         ms->Transition(map, coordinates);
52         ctrl->PopState();
53 }
54
55
56 void TransitionState::UpdateWorld(float deltaT) {
57
58 }
59
60 void TransitionState::Render(SDL_Surface *screen) {
61 //      ms->Render(screen);
62 }
63
64 }