X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FNumberAnimation.h;h=c198cd8f4c1c1cb3ca75a45f55c123e3b2855484;hb=7252571fb926a187c4c40e8f4eec718f16d63ffa;hp=2c96b5e816d256587d3de658931ad87248aa86c5;hpb=aedc31b88715246abc00a0ab333bea6e17bbb780;p=l2e.git diff --git a/src/battle/NumberAnimation.h b/src/battle/NumberAnimation.h index 2c96b5e..c198cd8 100644 --- a/src/battle/NumberAnimation.h +++ b/src/battle/NumberAnimation.h @@ -8,14 +8,9 @@ #ifndef BATTLE_NUMBERANIMATION_H_ #define BATTLE_NUMBERANIMATION_H_ -#include "../graphics/ComplexAnimation.h" - -#include "../geometry/Point.h" - -namespace app { - class Application; - class State; -} +#include "../app/fwd.h" +#include "../geometry/Vector.h" +#include "../graphics/Animation.h" namespace battle { @@ -23,7 +18,7 @@ class NumberAnimation { public: NumberAnimation() : number(-1) { } - NumberAnimation(int number, const graphics::ComplexAnimation &prototype, const graphics::Sprite *numbers); + NumberAnimation(int number, const graphics::Animation *prototype, const graphics::Sprite *numbers); public: void Start(app::State &); @@ -33,11 +28,11 @@ public: int Width() const; int Height() const; - void Draw(SDL_Surface *dest, const geometry::Point &position) const; + void Draw(SDL_Surface *dest, const geometry::Vector &position) const; private: int number; - graphics::ComplexAnimation animation[4]; + graphics::AnimationRunner animation[4]; };