summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-06 14:14:37 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-06 14:14:37 +0200
commit311d997ef12300c63cf48047cb647594af64a39b (patch)
tree342514d10f1c12337db1fa5dc2a84ac2ad245e73
parentdc1a5978f40c8021895bc60b8802e64c6b43e805 (diff)
downloadRustAndDust-311d997ef12300c63cf48047cb647594af64a39b.zip
RustAndDust-311d997ef12300c63cf48047cb647594af64a39b.tar.gz
Pawn: add getRotationAnimation(Vector3)
-rw-r--r--core/src/ch/asynk/tankontank/engine/Pawn.java8
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)
{