X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FApplication.cpp;h=06ea7270f545ec25aebb6e4234c2587b011adac6;hb=65158353d1ecbed0032752863c6c4eb96b1a084a;hp=f773cfcec71f96252c9da4cad9275e8096016bc9;hpb=f6691e2827a7eb8d2bdd3fbe175ecbfda09357ae;p=l2e.git diff --git a/src/app/Application.cpp b/src/app/Application.cpp index f773cfc..06ea727 100644 --- a/src/app/Application.cpp +++ b/src/app/Application.cpp @@ -85,32 +85,32 @@ void Application::PopState() { void Application::RealChangeState(State *s) { if (!states.empty()) { - states.top()->PauseState(*this, screen.Screen()); - states.top()->ExitState(*this, screen.Screen()); + states.top()->OnPauseState(*this, screen.Screen()); + states.top()->OnExitState(*this, screen.Screen()); states.pop(); } states.push(s); - s->EnterState(*this, screen.Screen()); - s->ResumeState(*this, screen.Screen()); + s->OnEnterState(*this, screen.Screen()); + s->OnResumeState(*this, screen.Screen()); } void Application::RealPushState(State *s) { if (!states.empty()) { - states.top()->PauseState(*this, screen.Screen()); + states.top()->OnPauseState(*this, screen.Screen()); } states.push(s); - s->EnterState(*this, screen.Screen()); - s->ResumeState(*this, screen.Screen()); + s->OnEnterState(*this, screen.Screen()); + s->OnResumeState(*this, screen.Screen()); } void Application::RealPopState() { if (states.empty()) return; - states.top()->PauseState(*this, screen.Screen()); - states.top()->ExitState(*this, screen.Screen()); + states.top()->OnPauseState(*this, screen.Screen()); + states.top()->OnExitState(*this, screen.Screen()); delete states.top(); states.pop(); if (!states.empty()) { - states.top()->ResumeState(*this, screen.Screen()); + states.top()->OnResumeState(*this, screen.Screen()); } } @@ -120,8 +120,8 @@ void Application::Quit() { void Application::PopAllStates() { while (!states.empty()) { - states.top()->PauseState(*this, screen.Screen()); - states.top()->ExitState(*this, screen.Screen()); + states.top()->OnPauseState(*this, screen.Screen()); + states.top()->OnExitState(*this, screen.Screen()); delete states.top(); states.pop(); }