using app::State;
using geometry::Point;
using geometry::Vector;
-using graphics::ComplexAnimation;
+using graphics::Animation;
+using graphics::AnimationRunner;
using graphics::Sprite;
namespace battle {
-NumberAnimation::NumberAnimation(int number, const ComplexAnimation &a, const Sprite *numbers)
+NumberAnimation::NumberAnimation(int number, const Animation *a, const Sprite *numbers)
: number(number) {
- animation[0] = a;
- animation[1] = a;
- animation[2] = a;
- animation[3] = a;
+ animation[0] = AnimationRunner(a);
+ animation[1] = AnimationRunner(a);
+ animation[2] = AnimationRunner(a);
+ animation[3] = AnimationRunner(a);
animation[0].ChangeSprite(numbers);
animation[1].ChangeSprite(numbers);
#ifndef BATTLE_NUMBERANIMATION_H_
#define BATTLE_NUMBERANIMATION_H_
-#include "../graphics/ComplexAnimation.h"
+#include "../graphics/Animation.h"
#include "../geometry/Point.h"
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 &);
private:
int number;
- graphics::ComplexAnimation animation[4];
+ graphics::AnimationRunner animation[4];
};