X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;ds=sidebyside;f=src%2Fbattle%2Fstates%2FRunState.h;h=b1c18cb7bca65382ac3c11f95fc5c211e552c381;hb=65158353d1ecbed0032752863c6c4eb96b1a084a;hp=870f48d5abf5c744b794b1532b723b838f5732e4;hpb=6d080d21d8055df9962296863b4c0954bc81410b;p=l2e.git diff --git a/src/battle/states/RunState.h b/src/battle/states/RunState.h index 870f48d..b1c18cb 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,10 +22,10 @@ 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); @@ -35,6 +33,9 @@ public: 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;