4 * Created on: Aug 9, 2012
8 #ifndef BATTLE_SELECTTARGET_H_
9 #define BATTLE_SELECTTARGET_H_
11 #include "../../app/State.h"
13 #include "../../geometry/Vector.h"
15 namespace graphics { class Sprite; }
20 class TargetSelection;
21 class SelectAttackType;
27 SelectTarget(BattleState *battle, SelectAttackType *parent, TargetSelection *selection, const graphics::Sprite *cursorIcon)
28 : ctrl(0), battle(battle), parent(parent), selection(selection), cursorIcon(cursorIcon), flipFlop(true) { }
31 virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
32 virtual void ExitState(app::Application &ctrl, SDL_Surface *screen);
33 virtual void ResumeState(app::Application &ctrl, SDL_Surface *screen);
34 virtual void PauseState(app::Application &ctrl, SDL_Surface *screen);
36 virtual void Resize(int width, int height);
38 virtual void HandleEvents(const app::Input &);
39 virtual void UpdateWorld(float deltaT);
40 virtual void Render(SDL_Surface *);
43 void RenderCursors(SDL_Surface *screen, const geometry::Vector<int> &offset);
46 app::Application *ctrl;
48 SelectAttackType *parent;
49 TargetSelection *selection;
50 const graphics::Sprite *cursorIcon;
57 #endif /* BATTLE_SELECTTARGET_H_ */