]> git.localhorst.tv Git - l2e.git/blobdiff - src/battle/states/PerformAttacks.cpp
renamed Animation to SimpleAnimation
[l2e.git] / src / battle / states / PerformAttacks.cpp
index 09366d4d3ec3b642e1002eb13522fa82bc590553..c34e1144cdc6e4e54de9ca9ec1b6130bb6dafbd6 100644 (file)
@@ -17,9 +17,9 @@
 #include "../../common/Spell.h"
 #include "../../geometry/operators.h"
 #include "../../geometry/Point.h"
-#include "../../graphics/Animation.h"
 #include "../../graphics/Font.h"
 #include "../../graphics/Frame.h"
+#include "../../graphics/SimpleAnimation.h"
 
 #include <cstring>
 
@@ -27,7 +27,7 @@ using app::Application;
 using app::Input;
 using geometry::Point;
 using geometry::Vector;
-using graphics::Animation;
+using graphics::SimpleAnimation;
 
 namespace battle {
 
@@ -80,13 +80,13 @@ void PerformAttacks::HandleEvents(const Input &input) {
 
                                switch (ac.GetType()) {
                                        case AttackChoice::SWORD:
-                                               battle->HeroAnimationAt(cursor) = Animation(
+                                               battle->HeroAnimationAt(cursor) = SimpleAnimation(
                                                                battle->HeroAt(cursor).Sprite(),
                                                                battle->HeroAt(cursor).AttackFrameTime(),
                                                                battle->HeroAt(cursor).AttackFrames(), 2);
                                                break;
                                        case AttackChoice::MAGIC:
-                                               battle->HeroAnimationAt(cursor) = Animation(
+                                               battle->HeroAnimationAt(cursor) = SimpleAnimation(
                                                                battle->HeroAt(cursor).Sprite(),
                                                                battle->HeroAt(cursor).SpellFrameTime(),
                                                                battle->HeroAt(cursor).SpellFrames(), 3);
@@ -96,12 +96,12 @@ void PerformAttacks::HandleEvents(const Input &input) {
                                        case AttackChoice::IKARI:
                                                if (ac.GetItem()->HasIkari()) {
                                                        if (ac.GetItem()->GetIkari()->IsMagical()) {
-                                                               battle->HeroAnimationAt(cursor) = Animation(
+                                                               battle->HeroAnimationAt(cursor) = SimpleAnimation(
                                                                                battle->HeroAt(cursor).Sprite(),
                                                                                battle->HeroAt(cursor).SpellFrameTime(),
                                                                                battle->HeroAt(cursor).SpellFrames(), 3);
                                                        } else {
-                                                               battle->HeroAnimationAt(cursor) = Animation(
+                                                               battle->HeroAnimationAt(cursor) = SimpleAnimation(
                                                                                battle->HeroAt(cursor).Sprite(),
                                                                                battle->HeroAt(cursor).AttackFrameTime(),
                                                                                battle->HeroAt(cursor).AttackFrames(), 2);