4 * Created on: Aug 10, 2012
8 #ifndef BATTLE_SWAPHEROES_H_
9 #define BATTLE_SWAPHEROES_H_
13 class SelectMoveAction;
20 #include "../../app/State.h"
28 SwapHeroes(BattleState *battle, SelectMoveAction *parent)
29 : battle(battle), parent(parent), cursor(0), selected(-1), flipFlop(true) { }
32 virtual void HandleEvents(const app::Input &);
33 virtual void UpdateWorld(Uint32 deltaT);
34 virtual void Render(SDL_Surface *);
37 virtual void OnEnterState(SDL_Surface *screen);
38 virtual void OnExitState(SDL_Surface *screen);
39 virtual void OnResumeState(SDL_Surface *screen);
40 virtual void OnPauseState(SDL_Surface *screen);
42 virtual void OnResize(int width, int height);
51 void RenderCursors(SDL_Surface *screen, const math::Vector<int> &offset);
55 SelectMoveAction *parent;
64 #endif /* BATTLE_SWAPHEROES_H_ */