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 : battle(battle), parent(parent), selection(selection), cursorIcon(cursorIcon), flipFlop(true) { }
26 virtual void HandleEvents(const app::Input &);
27 virtual void UpdateWorld(float deltaT);
28 virtual void Render(SDL_Surface *);
31 virtual void OnEnterState(SDL_Surface *screen);
32 virtual void OnExitState(SDL_Surface *screen);
33 virtual void OnResumeState(SDL_Surface *screen);
34 virtual void OnPauseState(SDL_Surface *screen);
36 virtual void OnResize(int width, int height);
39 void RenderCursors(SDL_Surface *screen, const geometry::Vector<int> &offset);
43 SelectAttackType *parent;
44 TargetSelection *selection;
45 const graphics::Sprite *cursorIcon;
52 #endif /* BATTLE_SELECTTARGET_H_ */