1 #ifndef BATTLE_SELECTTARGET_H_
2 #define BATTLE_SELECTTARGET_H_
6 class SelectAttackType;
13 #include "../../app/State.h"
14 #include "../../math/Vector.h"
24 SelectTarget(BattleState *battle, SelectAttackType *parent, TargetSelection *selection, const graphics::Sprite *cursorIcon)
25 : battle(battle), parent(parent), selection(selection), cursorIcon(cursorIcon), flipFlop(true) { }
28 virtual void HandleEvents(const app::Input &);
29 virtual void UpdateWorld(Uint32 deltaT);
30 virtual void Render(SDL_Surface *);
33 virtual void OnEnterState(SDL_Surface *screen);
34 virtual void OnExitState(SDL_Surface *screen);
35 virtual void OnResumeState(SDL_Surface *screen);
36 virtual void OnPauseState(SDL_Surface *screen);
38 virtual void OnResize(int width, int height);
41 void RenderCursors(SDL_Surface *screen);
45 SelectAttackType *parent;
46 TargetSelection *selection;
47 const graphics::Sprite *cursorIcon;
48 std::vector<math::Vector<int> > monsterPositions;
49 std::vector<math::Vector<int> > heroPositions;
50 math::Vector<int> cursorOffset;
51 math::Vector<int> indicatorOffset;