summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-10 08:56:11 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-10 08:56:11 +0200
commitad12a84586d0d0c7f6f0f74e7c6c44c16a1b290d (patch)
tree2ed2f72bf4bb3984f94366abc2d65eb5093551d7 /core
parent8424081ce754f2b71ec76bcae74bae4ac79791cd (diff)
downloadRustAndDust-ad12a84586d0d0c7f6f0f74e7c6c44c16a1b290d.zip
RustAndDust-ad12a84586d0d0c7f6f0f74e7c6c44c16a1b290d.tar.gz
Pawn: cleanup
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)
{