X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2Fstates%2FPerformAttacks.h;h=19c6967379b258cafad54e48ac48ee5ecaccbbbe;hb=2a1d9169e1f6c2dfe0f93ed40d5fb68d3da342af;hp=556ae43b5b0bb93b5210457ebb449afa9cc58d0c;hpb=00b557a47e47d9410730d47d436f6158a3fb79f5;p=l2e.git diff --git a/src/battle/states/PerformAttacks.h b/src/battle/states/PerformAttacks.h index 556ae43..19c6967 100644 --- a/src/battle/states/PerformAttacks.h +++ b/src/battle/states/PerformAttacks.h @@ -13,7 +13,7 @@ #include "../BattleState.h" #include "../NumberAnimation.h" #include "../../geometry/Vector.h" -#include "../../graphics/ComplexAnimation.h" +#include "../../graphics/Animation.h" #include @@ -42,10 +42,10 @@ private: void CheckAnimations(); bool HasAnimationsRunning() const; void ResetAnimation(); - void AdvanceCursor(); - bool Finished() const { return cursor >= int(order.size()); } private: + void AddNumberAnimations(const TargetSelection &); + void RenderTitleBar(SDL_Surface *screen, const geometry::Vector &offset) const; void RenderNumbers(SDL_Surface *screen, const geometry::Vector &offset) const; void RenderTargetAnimation(SDL_Surface *screen, const geometry::Vector &offset) const; @@ -53,14 +53,13 @@ private: private: app::Application *ctrl; BattleState *battle; - graphics::Animation *moveAnimation; - graphics::Animation *targetAnimation; + graphics::AnimationRunner moveAnimation; + graphics::AnimationRunner targetAnimation; const char *titleBarText; app::Timer titleBarTimer; app::Timer targetAnimationTimer; - std::vector order; std::vector numberAnimation; - std::vector > numberPosition; + std::vector > numberPosition; int cursor; };