]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/SwapHeroes.h
cached some of the battle coordinates
[l2e.git] / src / battle / states / SwapHeroes.h
index 14d0d723c9611dca6a96db884a2ed0b6135329b3..1f98772a1952e208844c422c38f6d5c0761ed457 100644 (file)
@@ -1,17 +1,16 @@
-/*
- * SwapHeroes.h
- *
- *  Created on: Aug 10, 2012
- *      Author: holy
- */
-
 #ifndef BATTLE_SWAPHEROES_H_
 #define BATTLE_SWAPHEROES_H_
 
-#include "../fwd.h"
+namespace battle {
+       class BattleState;
+       class SelectMoveAction;
+}
+
 #include "../../app/State.h"
 #include "../../math/Vector.h"
 
+#include <vector>
+
 namespace battle {
 
 class SwapHeroes
@@ -23,7 +22,7 @@ public:
 
 public:
        virtual void HandleEvents(const app::Input &);
-       virtual void UpdateWorld(float deltaT);
+       virtual void UpdateWorld(Uint32 deltaT);
        virtual void Render(SDL_Surface *);
 
 private:
@@ -41,11 +40,14 @@ private:
        void MoveLeft();
 
 private:
-       void RenderCursors(SDL_Surface *screen, const math::Vector<int> &offset);
+       void RenderCursors(SDL_Surface *screen);
 
 private:
        BattleState *battle;
        SelectMoveAction *parent;
+       std::vector<math::Vector<int> > positions;
+       math::Vector<int> cursorOffset;
+       math::Vector<int> indicatorOffset;
        int cursor;
        int selected;
        bool flipFlop;
@@ -54,4 +56,4 @@ private:
 
 }
 
-#endif /* BATTLE_SWAPHEROES_H_ */
+#endif