From ad12a84586d0d0c7f6f0f74e7c6c44c16a1b290d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 10 Oct 2014 08:56:11 +0200 Subject: Pawn: cleanup --- core/src/ch/asynk/tankontank/engine/Pawn.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java index fb4304a..15e4200 100644 --- a/core/src/ch/asynk/tankontank/engine/Pawn.java +++ b/core/src/ch/asynk/tankontank/engine/Pawn.java @@ -152,6 +152,14 @@ public abstract class Pawn implements Drawable, Disposable return hasOverlayEnabled(); } + public AnimationSequence getRotateAnimation(Vector3 v) + { + AnimationSequence seq = AnimationSequence.get(2); + seq.addAnimation(MoveToAnimation.get(this, v, MOVE_TIME)); + + return seq; + } + public AnimationSequence getMoveAnimation(ArrayList path) { int s = path.size(); @@ -173,14 +181,6 @@ 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) { -- cgit v1.1-2-g2b99