-/*
- * SwapHeroes.h
- *
- * Created on: Aug 10, 2012
- * Author: holy
- */
-
#ifndef BATTLE_SWAPHEROES_H_
#define BATTLE_SWAPHEROES_H_
-#include "../fwd.h"
+namespace battle {
+ class Battle;
+ class SelectMoveAction;
+}
+
#include "../../app/State.h"
#include "../../math/Vector.h"
+#include <vector>
+
namespace battle {
class SwapHeroes
: public app::State {
public:
- SwapHeroes(BattleState *battle, SelectMoveAction *parent)
- : battle(battle), parent(parent), cursor(0), selected(-1), flipFlop(true) { }
+ SwapHeroes(Battle *battle, SelectMoveAction *parent);
public:
virtual void HandleEvents(const app::Input &);
void MoveLeft();
private:
- void RenderCursors(SDL_Surface *screen, const math::Vector<int> &offset);
+ void RenderCursors(SDL_Surface *screen);
private:
- BattleState *battle;
+ Battle *battle;
SelectMoveAction *parent;
+ std::vector<math::Vector<int> > positions;
+ math::Vector<int> cursorOffset;
+ math::Vector<int> indicatorOffset;
int cursor;
int selected;
bool flipFlop;
}
-#endif /* BATTLE_SWAPHEROES_H_ */
+#endif