From: Daniel Karbach Date: Mon, 13 Aug 2012 21:19:55 +0000 (+0200) Subject: tagged some tasks in AttackAnimation X-Git-Url: http://git.localhorst.tv/?a=commitdiff_plain;h=7ccc3e8a2a467232383bb5896ed6c528da89add2;hp=c98665e575f49251dd9b123204063eefdc10e681;p=l2e.git tagged some tasks in AttackAnimation --- diff --git a/src/battle/AttackAnimation.cpp b/src/battle/AttackAnimation.cpp index 938982a..7f41be6 100644 --- a/src/battle/AttackAnimation.cpp +++ b/src/battle/AttackAnimation.cpp @@ -114,6 +114,7 @@ bool AttackAnimation::ExecuteWaitAnimation() { } bool AttackAnimation::ExecuteAttackAnimation() { + // TODO: get real hero/monster foreignAnimations.push_back(battle->HeroAt(0).AttackAnimation()); battle->HeroAt(0).AttackAnimation()->Start(*state); ++cursor; @@ -121,6 +122,7 @@ bool AttackAnimation::ExecuteAttackAnimation() { } bool AttackAnimation::ExecuteSpellAnimation() { + // TODO: get real hero/monster foreignAnimations.push_back(battle->HeroAt(0).SpellAnimation()); battle->HeroAt(0).SpellAnimation()->Start(*state); ++cursor; @@ -128,6 +130,7 @@ bool AttackAnimation::ExecuteSpellAnimation() { } bool AttackAnimation::ExecuteTargetAnimation() { + // TODO: get real positions AnimationMemo am; am.animation = (Animation *) text[cursor + 1].ptr; am.animation->Start(*state); @@ -141,7 +144,7 @@ bool AttackAnimation::ExecuteFullscreenAnimation() { AnimationMemo am; am.animation = (Animation *) text[cursor + 1].ptr; am.animation->Start(*state); - am.position = Point(100, 100); + am.position = Point(0, 0); animations.push_back(am); cursor += 2; return true;