4 * Created on: Aug 9, 2012
8 #ifndef BATTLE_SELECTTARGET_H_
9 #define BATTLE_SELECTTARGET_H_
13 class SelectAttackType;
14 class TargetSelection;
24 #include "../../app/State.h"
32 SelectTarget(BattleState *battle, SelectAttackType *parent, TargetSelection *selection, const graphics::Sprite *cursorIcon)
33 : battle(battle), parent(parent), selection(selection), cursorIcon(cursorIcon), flipFlop(true) { }
36 virtual void HandleEvents(const app::Input &);
37 virtual void UpdateWorld(Uint32 deltaT);
38 virtual void Render(SDL_Surface *);
41 virtual void OnEnterState(SDL_Surface *screen);
42 virtual void OnExitState(SDL_Surface *screen);
43 virtual void OnResumeState(SDL_Surface *screen);
44 virtual void OnPauseState(SDL_Surface *screen);
46 virtual void OnResize(int width, int height);
49 void RenderCursors(SDL_Surface *screen, const math::Vector<int> &offset);
53 SelectAttackType *parent;
54 TargetSelection *selection;
55 const graphics::Sprite *cursorIcon;
62 #endif /* BATTLE_SELECTTARGET_H_ */