4 * Created on: Aug 9, 2012
8 #ifndef BATTLE_SELECTTARGET_H_
9 #define BATTLE_SELECTTARGET_H_
12 #include "../../app/State.h"
13 #include "../../geometry/Vector.h"
14 #include "../../graphics/fwd.h"
22 SelectTarget(BattleState *battle, SelectAttackType *parent, TargetSelection *selection, const graphics::Sprite *cursorIcon)
23 : ctrl(0), battle(battle), parent(parent), selection(selection), cursorIcon(cursorIcon), flipFlop(true) { }
26 virtual void OnEnterState(app::Application &ctrl, SDL_Surface *screen);
27 virtual void OnExitState(app::Application &ctrl, SDL_Surface *screen);
28 virtual void OnResumeState(app::Application &ctrl, SDL_Surface *screen);
29 virtual void OnPauseState(app::Application &ctrl, SDL_Surface *screen);
31 virtual void Resize(int width, int height);
33 virtual void HandleEvents(const app::Input &);
34 virtual void UpdateWorld(float deltaT);
35 virtual void Render(SDL_Surface *);
38 void RenderCursors(SDL_Surface *screen, const geometry::Vector<int> &offset);
41 app::Application *ctrl;
43 SelectAttackType *parent;
44 TargetSelection *selection;
45 const graphics::Sprite *cursorIcon;
52 #endif /* BATTLE_SELECTTARGET_H_ */