summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Pawn.java16
1 files 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<Vector3> 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)
{