namespace battle {
void SwapHeroes::OnEnterState(Application &c, SDL_Surface *screen) {
- ctrl = &c;
+
}
void SwapHeroes::OnExitState(Application &c, SDL_Surface *screen) {
- ctrl = 0;
+
}
void SwapHeroes::OnResumeState(Application &ctrl, SDL_Surface *screen) {
}
-void SwapHeroes::Resize(int width, int height) {
+void SwapHeroes::OnResize(int width, int height) {
}
if (cursor == selected) {
selected = -1;
} else {
- ctrl->PopState();
+ Ctrl().PopState();
}
}