X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSwapHeroes.h;h=198e4d3d1504d0a99aa78471ee7d51b2123bb3c7;hb=ec25171b0b27999eb126e2144dae1e35f271b945;hp=1e7602aa0405bf51cad8193e6b40c82e94b32a3c;hpb=65158353d1ecbed0032752863c6c4eb96b1a084a;p=l2e.git diff --git a/src/battle/states/SwapHeroes.h b/src/battle/states/SwapHeroes.h index 1e7602a..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 OnEnterState(app::Application &ctrl, SDL_Surface *screen); - 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 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;