X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fbattle%2FNumberAnimation.cpp;h=17eb771c64b91b7607b76b1c6e8d91f9983a38fb;hb=b53c2ec2621ccc654e819cb203dc26e0a482bd41;hp=7002f57c8c7e679f61630429435cbb1a3efab1ed;hpb=aedc31b88715246abc00a0ab333bea6e17bbb780;p=l2e.git diff --git a/src/battle/NumberAnimation.cpp b/src/battle/NumberAnimation.cpp index 7002f57..17eb771 100644 --- a/src/battle/NumberAnimation.cpp +++ b/src/battle/NumberAnimation.cpp @@ -13,17 +13,18 @@ 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);