break;
case SDL_VIDEORESIZE:
screen.Resize(event.resize.w, event.resize.h);
- CurrentState()->Resize(event.resize.w, event.resize.h);
+ CurrentState()->OnResize(event.resize.w, event.resize.h);
break;
case SDL_KEYDOWN:
case SDL_KEYUP:
/// NOTE: currently, this is only called for the stack top and not
/// propagated on stack changes.
/// Will be fixed soom ;).
- virtual void Resize(int width, int height) = 0;
+ virtual void OnResize(int width, int height) = 0;
/// Handle interactive events such as input and timers.
virtual void HandleEvents(const Input &) = 0;
}
-void BattleState::Resize(int w, int h) {
+void BattleState::OnResize(int w, int h) {
}
virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
- virtual void Resize(int width, int height);
+ virtual void OnResize(int width, int height);
virtual void HandleEvents(const app::Input &);
virtual void UpdateWorld(float deltaT);
}
-void PerformAttacks::Resize(int width, int height) {
+void PerformAttacks::OnResize(int width, int height) {
}
virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
- virtual void Resize(int width, int height);
+ virtual void OnResize(int width, int height);
virtual void HandleEvents(const app::Input &);
virtual void UpdateWorld(float deltaT);
}
-void RunState::Resize(int width, int height) {
+void RunState::OnResize(int width, int height) {
}
virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
- virtual void Resize(int width, int height);
+ virtual void OnResize(int width, int height);
virtual void HandleEvents(const app::Input &);
virtual void UpdateWorld(float deltaT);
}
-void SelectAttackType::Resize(int width, int height) {
+void SelectAttackType::OnResize(int width, int height) {
}
virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
- virtual void Resize(int width, int height);
+ virtual void OnResize(int width, int height);
virtual void HandleEvents(const app::Input &);
virtual void UpdateWorld(float deltaT);
}
-void SelectIkari::Resize(int width, int height) {
+void SelectIkari::OnResize(int width, int height) {
}
virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
- virtual void Resize(int width, int height);
+ virtual void OnResize(int width, int height);
virtual void HandleEvents(const app::Input &);
virtual void UpdateWorld(float deltaT);
}
-void SelectItem::Resize(int width, int height) {
+void SelectItem::OnResize(int width, int height) {
}
virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
- virtual void Resize(int width, int height);
+ virtual void OnResize(int width, int height);
virtual void HandleEvents(const app::Input &);
virtual void UpdateWorld(float deltaT);
}
-void SelectMoveAction::Resize(int width, int height) {
+void SelectMoveAction::OnResize(int width, int height) {
}
virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
- virtual void Resize(int width, int height);
+ virtual void OnResize(int width, int height);
virtual void HandleEvents(const app::Input &);
virtual void UpdateWorld(float deltaT);
}
-void SelectSpell::Resize(int width, int height) {
+void SelectSpell::OnResize(int width, int height) {
}
virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
- virtual void Resize(int width, int height);
+ virtual void OnResize(int width, int height);
virtual void HandleEvents(const app::Input &);
virtual void UpdateWorld(float deltaT);
}
-void SelectTarget::Resize(int width, int height) {
+void SelectTarget::OnResize(int width, int height) {
}
virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
- virtual void Resize(int width, int height);
+ virtual void OnResize(int width, int height);
virtual void HandleEvents(const app::Input &);
virtual void UpdateWorld(float deltaT);
}
-void SwapHeroes::Resize(int width, int height) {
+void SwapHeroes::OnResize(int width, int height) {
}
virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
- virtual void Resize(int width, int height);
+ virtual void OnResize(int width, int height);
virtual void HandleEvents(const app::Input &);
virtual void UpdateWorld(float deltaT);
}
-void ColorFade::Resize(int width, int height) {
- slave->Resize(width, height);
+void ColorFade::OnResize(int width, int height) {
+ slave->OnResize(width, height);
UpdateBlinds(width, height);
}
virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
- virtual void Resize(int width, int height);
+ virtual void OnResize(int width, int height);
virtual void HandleEvents(const app::Input &);
virtual void UpdateWorld(float deltaT);
}
-void MapState::Resize(int width, int height) {
+void MapState::OnResize(int width, int height) {
camera.Resize(width, height);
}
virtual void OnExitState(app::Application &ctrl, SDL_Surface *screen);
virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
- virtual void Resize(int width, int height);
+ virtual void OnResize(int width, int height);
virtual void HandleEvents(const app::Input &);
virtual void UpdateWorld(float deltaT);
}
-void TransitionState::Resize(int width, int height) {
+void TransitionState::OnResize(int width, int height) {
}
virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
- virtual void Resize(int width, int height);
+ virtual void OnResize(int width, int height);
virtual void HandleEvents(const app::Input &);
virtual void UpdateWorld(float deltaT);