4 * Created on: Aug 10, 2012
8 #ifndef BATTLE_RUNSTATE_H_
9 #define BATTLE_RUNSTATE_H_
11 #include "../../app/State.h"
13 #include "../../geometry/Vector.h"
23 explicit RunState(BattleState *battle)
24 : ctrl(0), battle(battle){ }
27 virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
28 virtual void ExitState(app::Application &ctrl, SDL_Surface *screen);
29 virtual void ResumeState(app::Application &ctrl, SDL_Surface *screen);
30 virtual void PauseState(app::Application &ctrl, SDL_Surface *screen);
32 virtual void Resize(int width, int height);
34 virtual void HandleEvents(const app::Input &);
35 virtual void UpdateWorld(float deltaT);
36 virtual void Render(SDL_Surface *);
39 app::Application *ctrl;
41 app::Timer<Uint32> timer;
47 #endif /* BATTLE_RUNSTATE_H_ */