diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-04-07 09:43:43 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-04-07 09:43:43 +0200 |
commit | ea6ff735f300b16525ec3059cd5baed8bd4eb9c8 (patch) | |
tree | c2740a805e4e2e7296edb4fca1c1befbeaabb401 /core/src/ch/asynk/rustanddust | |
parent | cd112459ffe6252e88adc0292bdc98804a022cd1 (diff) | |
download | RustAndDust-ea6ff735f300b16525ec3059cd5baed8bd4eb9c8.zip RustAndDust-ea6ff735f300b16525ec3059cd5baed8bd4eb9c8.tar.gz |
Board: removeLastPawnMove: set lovely animation
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r-- | core/src/ch/asynk/rustanddust/engine/Board.java | 5 |
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(); } |