X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FRunState.h;h=9cee764776e59df9062658db3c415f19b1b969a1;hb=3f8fac16c7ae2cbe7da47b98aba9b558825723e7;hp=61c52709848959b42661f279cdce685254f66559;hpb=923422e6a71f57b8fa24b826d1e2914faa144081;p=l2e.git diff --git a/src/battle/states/RunState.h b/src/battle/states/RunState.h index 61c5270..9cee764 100644 --- a/src/battle/states/RunState.h +++ b/src/battle/states/RunState.h @@ -8,38 +8,37 @@ #ifndef BATTLE_RUNSTATE_H_ #define BATTLE_RUNSTATE_H_ +#include "../fwd.h" #include "../../app/State.h" - #include "../../geometry/Vector.h" namespace battle { -class BattleState; - class RunState : public app::State { public: explicit RunState(BattleState *battle) - : ctrl(0), battle(battle){ } + : battle(battle){ } 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(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 OnResize(int width, int height); + private: void RenderTitleBar(SDL_Surface *screen, const geometry::Vector &offset); private: - app::Application *ctrl; BattleState *battle; app::Timer timer;