X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FTransitionState.cpp;h=4490f83b37b0170d2bc22b2f8d22250ad165e2f6;hb=3a86cc937e9fce68384efc08edb6d6ba101d12eb;hp=9a1d699f6582c44fd4b6b7ecf3e0f10b86e60bbf;hpb=e02068d51f5e7f82d4d3195e9a9ce5c9d76f727d;p=l2e.git diff --git a/src/map/TransitionState.cpp b/src/map/TransitionState.cpp index 9a1d699..4490f83 100644 --- a/src/map/TransitionState.cpp +++ b/src/map/TransitionState.cpp @@ -18,38 +18,37 @@ using geometry::Vector; namespace map { TransitionState::TransitionState(MapState *ms, Map *map, const Vector &coordinates) -: ctrl(0) -, ms(ms) +: ms(ms) , map(map) , coordinates(coordinates) { } -void TransitionState::EnterState(Application &c, SDL_Surface *screen) { - ctrl = &c; +void TransitionState::OnEnterState(SDL_Surface *screen) { + } -void TransitionState::ExitState(Application &, SDL_Surface *screen) { +void TransitionState::OnExitState(SDL_Surface *screen) { } -void TransitionState::ResumeState(Application &ctrl, SDL_Surface *screen) { +void TransitionState::OnResumeState(SDL_Surface *screen) { } -void TransitionState::PauseState(Application &ctrl, SDL_Surface *screen) { +void TransitionState::OnPauseState(SDL_Surface *screen) { } -void TransitionState::Resize(int width, int height) { +void TransitionState::OnResize(int width, int height) { } void TransitionState::HandleEvents(const Input &input) { ms->Transition(map, coordinates); - ctrl->PopState(); + Ctrl().PopState(); }