summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Board.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java
index 7a4ce40..9300d73 100644
--- a/core/src/ch/asynk/tankontank/engine/Board.java
+++ b/core/src/ch/asynk/tankontank/engine/Board.java
@@ -424,12 +424,12 @@ public abstract class Board implements Disposable
return pawn;
}
- private RunnableAnimation getSetPawnOntoAnimation(final Pawn pawn, final Tile dest )
+ private RunnableAnimation getSetPawnOntoAnimation(final Pawn pawn)
{
return RunnableAnimation.get(pawn, new Runnable() {
@Override
public void run() {
- setPawnOnto(pawn, dest, pawn.getRotation());
+ setPawnOnto(pawn, pawn.move.to, pawn.move.orientation);
}
});
}
@@ -440,7 +440,7 @@ public abstract class Board implements Disposable
removePawn(pawn);
AnimationSequence seq = pawn.getMoveAnimation(possiblePaths.iterator(), possiblePaths.pathSteps(0) + 2);
- seq.addAnimation(getSetPawnOntoAnimation(pawn, possiblePaths.to));
+ seq.addAnimation(getSetPawnOntoAnimation(pawn));
seq.addAnimation(whenDone);
addAnimation(seq);
@@ -453,7 +453,7 @@ public abstract class Board implements Disposable
removePawn(pawn);
AnimationSequence seq = pawn.getRotateAnimation(o.r(), 2);
- seq.addAnimation(getSetPawnOntoAnimation(pawn, pawn.getTile()));
+ seq.addAnimation(getSetPawnOntoAnimation(pawn));
seq.addAnimation(whenDone);
addAnimation(seq);