]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/NumberAnimation.cpp
added target selection type detection for weapons
[l2e.git] / src / battle / NumberAnimation.cpp
index 7002f57c8c7e679f61630429435cbb1a3efab1ed..17eb771c64b91b7607b76b1c6e8d91f9983a38fb 100644 (file)
 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);