diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-06 14:14:37 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-06 14:14:37 +0200 |
commit | 311d997ef12300c63cf48047cb647594af64a39b (patch) | |
tree | 342514d10f1c12337db1fa5dc2a84ac2ad245e73 /core/src/ch/asynk/tankontank | |
parent | dc1a5978f40c8021895bc60b8802e64c6b43e805 (diff) | |
download | RustAndDust-311d997ef12300c63cf48047cb647594af64a39b.zip RustAndDust-311d997ef12300c63cf48047cb647594af64a39b.tar.gz |
Pawn: add getRotationAnimation(Vector3)
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-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) { |