4 * Created on: Aug 10, 2012
8 #ifndef BATTLE_SWAPHEROES_H_
9 #define BATTLE_SWAPHEROES_H_
11 #include "../../app/State.h"
13 #include "../../geometry/Vector.h"
18 class SelectMoveAction;
24 SwapHeroes(BattleState *battle, SelectMoveAction *parent)
25 : ctrl(0), battle(battle), parent(parent), cursor(0), selected(-1), flipFlop(true) { }
28 virtual void EnterState(app::Application &ctrl, SDL_Surface *screen);
29 virtual void ExitState(app::Application &ctrl, SDL_Surface *screen);
30 virtual void ResumeState(app::Application &ctrl, SDL_Surface *screen);
31 virtual void PauseState(app::Application &ctrl, SDL_Surface *screen);
33 virtual void Resize(int width, int height);
35 virtual void HandleEvents(const app::Input &);
36 virtual void UpdateWorld(float deltaT);
37 virtual void Render(SDL_Surface *);
46 void RenderCursors(SDL_Surface *screen, const geometry::Vector<int> &offset);
49 app::Application *ctrl;
51 SelectMoveAction *parent;
60 #endif /* BATTLE_SWAPHEROES_H_ */