From ea6ff735f300b16525ec3059cd5baed8bd4eb9c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Thu, 7 Apr 2016 09:43:43 +0200 Subject: Board: removeLastPawnMove: set lovely animation --- core/src/ch/asynk/rustanddust/engine/Board.java | 5 +++-- 1 file 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(); } -- cgit v1.1-2-g2b99