]> git.localhorst.tv Git - l2e.git/commitdiff
tagged some tasks in AttackAnimation
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 13 Aug 2012 21:19:55 +0000 (23:19 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Mon, 13 Aug 2012 21:19:55 +0000 (23:19 +0200)
src/battle/AttackAnimation.cpp

index 938982aec7ad1c709b67783757f3bd4be5a5bca6..7f41be6349d1f60ed02a7244ccdb8d9f8efbb5cb 100644 (file)
@@ -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<int>(100, 100);
+       am.position = Point<int>(0, 0);
        animations.push_back(am);
        cursor += 2;
        return true;