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(Battle *battle,
25 SelectAttackType *parent,
26 TargetSelection *selection,
27 const graphics::Sprite *cursorIcon);
30 virtual void HandleEvents(const app::Input &);
31 virtual void UpdateWorld(Uint32 deltaT);
32 virtual void Render(SDL_Surface *);
35 virtual void OnEnterState(SDL_Surface *screen);
36 virtual void OnExitState(SDL_Surface *screen);
37 virtual void OnResumeState(SDL_Surface *screen);
38 virtual void OnPauseState(SDL_Surface *screen);
40 virtual void OnResize(int width, int height);
43 void RenderCursors(SDL_Surface *screen);
47 SelectAttackType *parent;
48 TargetSelection *selection;
49 const graphics::Sprite *cursorIcon;
50 std::vector<math::Vector<int> > monsterPositions;
51 std::vector<math::Vector<int> > heroPositions;
52 math::Vector<int> cursorOffset;
53 math::Vector<int> indicatorOffset;