X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSelectMoveAction.h;h=66f3642c096ecb2e68af538ffd88249e329683b6;hb=092a2dd175a4001a495c84ee85211734fb928c83;hp=c1356631beb34421ed53da93d7e353db67dc0c82;hpb=558fd3d14ad1a9dc347998691a0b300fd334a16a;p=l2e.git diff --git a/src/battle/states/SelectMoveAction.h b/src/battle/states/SelectMoveAction.h index c135663..66f3642 100644 --- a/src/battle/states/SelectMoveAction.h +++ b/src/battle/states/SelectMoveAction.h @@ -8,37 +8,42 @@ #ifndef BATTLE_SELECTMOVEACTION_H_ #define BATTLE_SELECTMOVEACTION_H_ +namespace battle { + class BattleState; +} +namespace math { + template + class Vector; +} + #include "../../app/State.h" -#include "../../geometry/Vector.h" namespace battle { -class BattleState; -class MoveMenu; - class SelectMoveAction : public app::State { public: explicit SelectMoveAction(BattleState *battle) - : ctrl(0), battle(battle) { } - ~SelectMoveAction() { } + : battle(battle) { } public: - virtual void EnterState(app::Application &ctrl, SDL_Surface *screen); - virtual void ExitState(); + virtual void HandleEvents(const app::Input &); + virtual void UpdateWorld(Uint32 deltaT); + virtual void Render(SDL_Surface *); - virtual void Resize(int width, int height); +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 HandleInput(const app::Input &); - virtual void UpdateWorld(float deltaT); - virtual void Render(SDL_Surface *); + virtual void OnResize(int width, int height); private: - void RenderMenu(SDL_Surface *screen, const geometry::Vector &offset); + void RenderMenu(SDL_Surface *screen, const math::Vector &offset); private: - app::Application *ctrl; BattleState *battle; };