diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Pawn.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java index f68c473..bec7c68 100644 --- a/core/src/ch/asynk/tankontank/engine/Pawn.java +++ b/core/src/ch/asynk/tankontank/engine/Pawn.java @@ -160,6 +160,14 @@ public abstract class Pawn implements Drawable, Disposable return seq; } + public AnimationSequence getRotateAnimation(Vector3 v) + { + AnimationSequence seq = AnimationSequence.get(2); + seq.addAnimation(MoveToAnimation.get(this, v, MOVE_TIME)); + + return seq; + } + @Override public void draw(Batch batch) { |