summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-04-07 09:43:43 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2016-04-07 09:43:43 +0200
commitea6ff735f300b16525ec3059cd5baed8bd4eb9c8 (patch)
treec2740a805e4e2e7296edb4fca1c1befbeaabb401 /core
parentcd112459ffe6252e88adc0292bdc98804a022cd1 (diff)
downloadRustAndDust-ea6ff735f300b16525ec3059cd5baed8bd4eb9c8.zip
RustAndDust-ea6ff735f300b16525ec3059cd5baed8bd4eb9c8.tar.gz
Board: removeLastPawnMove: set lovely animation
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/Board.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/Board.java b/core/src/ch/asynk/rustanddust/engine/Board.java
index 6b80c04..1e23bb1 100644
--- a/core/src/ch/asynk/rustanddust/engine/Board.java
+++ b/core/src/ch/asynk/rustanddust/engine/Board.java
@@ -509,13 +509,14 @@ public abstract class Board implements Disposable, Animation
revertclaim(pawn, tile);
claim(pawn, move.from);
- addAnimation(RunnableAnimation.get(pawn, new Runnable() {
+ AnimationSequence seq = pawn.getRevertLastMoveAnimation(1);
+ seq.addAnimation(RunnableAnimation.get(pawn, new Runnable() {
@Override
public void run() {
pushPawnOnto(pawn, pawn.getTile());
}
}));
-
+ addAnimation(seq);
pawn.revertLastMove();
}