4 * Created on: Aug 8, 2012
8 #ifndef BATTLE_SELECTSPELL_H_
9 #define BATTLE_SELECTSPELL_H_
11 #include "../../app/State.h"
13 #include "../../geometry/Vector.h"
18 class SelectAttackType;
24 SelectSpell(BattleState *battle, SelectAttackType *parent)
25 : ctrl(0), battle(battle), parent(parent) { }
28 virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
29 virtual void ExitState(app::Application &ctrl, SDL_Surface *screen);
30 virtual void ResumeState(app::Application &ctrl, SDL_Surface *screen);
31 virtual void PauseState(app::Application &ctrl, SDL_Surface *screen);
33 virtual void Resize(int width, int height);
35 virtual void HandleEvents(const app::Input &);
36 virtual void UpdateWorld(float deltaT);
37 virtual void Render(SDL_Surface *);
40 void RenderFrame(SDL_Surface *, const geometry::Vector<int> &offset);
41 void RenderHeadline(SDL_Surface *, const geometry::Vector<int> &offset);
42 void RenderMenu(SDL_Surface *, const geometry::Vector<int> &offset);
45 app::Application *ctrl;
47 SelectAttackType *parent;
53 #endif /* BATTLE_SELECTSPELL_H_ */