]> git.localhorst.tv Git - l2e.git/blob - src/map/TransitionState.cpp
added Sort function to Inventory
[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 : ms(ms)
22 , map(map)
23 , coordinates(coordinates) {
24
25 }
26
27 void TransitionState::OnEnterState(SDL_Surface *screen) {
28
29 }
30
31 void TransitionState::OnExitState(SDL_Surface *screen) {
32
33 }
34
35 void TransitionState::OnResumeState(SDL_Surface *screen) {
36
37 }
38
39 void TransitionState::OnPauseState(SDL_Surface *screen) {
40
41 }
42
43
44 void TransitionState::OnResize(int width, int height) {
45
46 }
47
48
49 void TransitionState::HandleEvents(const Input &input) {
50         ms->Transition(map, coordinates);
51         Ctrl().PopState();
52 }
53
54
55 void TransitionState::UpdateWorld(float deltaT) {
56
57 }
58
59 void TransitionState::Render(SDL_Surface *screen) {
60 //      ms->Render(screen);
61 }
62
63 }