X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FSwapHeroes.h;h=1f98772a1952e208844c422c38f6d5c0761ed457;hb=dc275497c592669dda75645604a9b35d32f63e90;hp=14d0d723c9611dca6a96db884a2ed0b6135329b3;hpb=a3ba4dc677ad7c92eeb78b20b642241563605c9d;p=l2e.git diff --git a/src/battle/states/SwapHeroes.h b/src/battle/states/SwapHeroes.h index 14d0d72..1f98772 100644 --- a/src/battle/states/SwapHeroes.h +++ b/src/battle/states/SwapHeroes.h @@ -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 + 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 &offset); + void RenderCursors(SDL_Surface *screen); private: BattleState *battle; SelectMoveAction *parent; + std::vector > positions; + math::Vector cursorOffset; + math::Vector indicatorOffset; int cursor; int selected; bool flipFlop; @@ -54,4 +56,4 @@ private: } -#endif /* BATTLE_SWAPHEROES_H_ */ +#endif