X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectAttackType.h;h=64a7dbd9414b615ba9cbec40d3c30cb36ac3d283;hb=ec25171b0b27999eb126e2144dae1e35f271b945;hp=3b101881ff5d22e123438569e409b9252d53f5c5;hpb=558fd3d14ad1a9dc347998691a0b300fd334a16a;p=l2e.git diff --git a/src/battle/states/SelectAttackType.h b/src/battle/states/SelectAttackType.h index 3b10188..64a7dbd 100644 --- a/src/battle/states/SelectAttackType.h +++ b/src/battle/states/SelectAttackType.h @@ -8,37 +8,36 @@ #ifndef BATTLE_SELECTATTACKTYPE_H_ #define BATTLE_SELECTATTACKTYPE_H_ +#include "../fwd.h" #include "../../app/State.h" #include "../../geometry/Vector.h" namespace battle { -class AttackTypeMenu; -class BattleState; - class SelectAttackType : public app::State { public: explicit SelectAttackType(BattleState *battle) - : ctrl(0), battle(battle) { } - ~SelectAttackType() { } + : battle(battle) { } public: - virtual void EnterState(app::Application &ctrl, SDL_Surface *screen); - virtual void ExitState(); - - virtual void Resize(int width, int height); - - virtual void HandleInput(const app::Input &); + 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 RenderMenu(SDL_Surface *screen, const geometry::Vector &offset); private: - app::Application *ctrl; BattleState *battle; };