X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FRunState.h;h=e2d1b1b31f124cf9f55f0bf57a5faad41520500a;hb=2ccc2369d32fb680a3047519d79c17de34c4e10a;hp=870f48d5abf5c744b794b1532b723b838f5732e4;hpb=6d080d21d8055df9962296863b4c0954bc81410b;p=l2e.git diff --git a/src/battle/states/RunState.h b/src/battle/states/RunState.h index 870f48d..e2d1b1b 100644 --- a/src/battle/states/RunState.h +++ b/src/battle/states/RunState.h @@ -8,14 +8,12 @@ #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 { @@ -24,17 +22,20 @@ public: : ctrl(0), 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 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 OnResize(int width, int height); virtual void HandleEvents(const app::Input &); virtual void UpdateWorld(float deltaT); virtual void Render(SDL_Surface *); +private: + void RenderTitleBar(SDL_Surface *screen, const geometry::Vector &offset); + private: app::Application *ctrl; BattleState *battle;