X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSwapHeroes.h;h=198e4d3d1504d0a99aa78471ee7d51b2123bb3c7;hb=5ca18f73987fb3935ab34654cbbecf5eca4704cb;hp=8ad92981c6eeae5952563d8c6272b45addbba943;hpb=2a1d9169e1f6c2dfe0f93ed40d5fb68d3da342af;p=l2e.git diff --git a/src/battle/states/SwapHeroes.h b/src/battle/states/SwapHeroes.h index 8ad9298..198e4d3 100644 --- a/src/battle/states/SwapHeroes.h +++ b/src/battle/states/SwapHeroes.h @@ -19,20 +19,21 @@ class SwapHeroes public: SwapHeroes(BattleState *battle, SelectMoveAction *parent) - : ctrl(0), battle(battle), parent(parent), cursor(0), selected(-1), flipFlop(true) { } + : battle(battle), parent(parent), cursor(0), selected(-1), flipFlop(true) { } public: - virtual void EnterState(app::Application &ctrl, SDL_Surface *screen); - virtual void ExitState(app::Application &ctrl, SDL_Surface *screen); - virtual void ResumeState(app::Application &ctrl, SDL_Surface *screen); - virtual void PauseState(app::Application &ctrl, SDL_Surface *screen); - - virtual void Resize(int width, int height); - virtual void HandleEvents(const app::Input &); virtual void UpdateWorld(float deltaT); virtual void Render(SDL_Surface *); +private: + virtual void OnEnterState(SDL_Surface *screen); + virtual void OnExitState(SDL_Surface *screen); + virtual void OnResumeState(SDL_Surface *screen); + virtual void OnPauseState(SDL_Surface *screen); + + virtual void OnResize(int width, int height); + private: void MoveUp(); void MoveRight(); @@ -43,7 +44,6 @@ private: void RenderCursors(SDL_Surface *screen, const geometry::Vector &offset); private: - app::Application *ctrl; BattleState *battle; SelectMoveAction *parent; int cursor;