X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FPerformAttacks.h;fp=src%2Fbattle%2Fstates%2FPerformAttacks.h;h=a5f3247b404a7fd2bf64fd0dd495453c18843d7d;hb=aedc31b88715246abc00a0ab333bea6e17bbb780;hp=e0d3df821a0a66f944884048eef1f6c2fbd0d43c;hpb=ff31f85fb6a01403c50e34d1226690074c06b7d2;p=l2e.git diff --git a/src/battle/states/PerformAttacks.h b/src/battle/states/PerformAttacks.h index e0d3df8..a5f3247 100644 --- a/src/battle/states/PerformAttacks.h +++ b/src/battle/states/PerformAttacks.h @@ -11,12 +11,12 @@ #include "../../app/State.h" #include "../BattleState.h" +#include "../NumberAnimation.h" #include "../../geometry/Vector.h" +#include "../../graphics/ComplexAnimation.h" #include -namespace graphics { class Animation; } - namespace battle { class PerformAttacks @@ -38,8 +38,16 @@ public: virtual void UpdateWorld(float deltaT); virtual void Render(SDL_Surface *); +private: + void CheckNumberAnimation(); + bool HasAnimationsRunning() const; + void ResetAnimation(); + void AdvanceCursor(); + bool Finished() const { return cursor >= int(order.size()); } + private: void RenderTitleBar(SDL_Surface *screen, const geometry::Vector &offset); + void RenderNumbers(SDL_Surface *screen, const geometry::Vector &offset); private: app::Application *ctrl; @@ -48,6 +56,8 @@ private: const char *titleBarText; app::Timer titleBarTimer; std::vector order; + std::vector numberAnimation; + std::vector > numberPosition; int cursor; };