4 * Created on: Oct 17, 2012
12 using std::domain_error;
26 void State::EnterState(Application &c, SDL_Surface *screen) {
31 void State::ExitState(Application &c, SDL_Surface *screen) {
36 void State::ResumeState(SDL_Surface *screen) {
37 OnResumeState(screen);
40 void State::PauseState(SDL_Surface *screen) {
44 void State::Resize(int width, int height) {
45 OnResize(width, height);
49 Application &State::Ctrl() {
53 throw domain_error("call to app::State::Ctrl() without application context");
57 const Application &State::Ctrl() const {
61 throw domain_error("call to app::State::Ctrl() without application context");