summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Pawn.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Pawn.java b/core/src/ch/asynk/tankontank/engine/Pawn.java
index 27e6303..24a6cb8 100644
--- a/core/src/ch/asynk/tankontank/engine/Pawn.java
+++ b/core/src/ch/asynk/tankontank/engine/Pawn.java
@@ -42,6 +42,11 @@ public abstract class Pawn extends Image implements Disposable
return path.getFirst();
}
+ public Board.Orientation getOrientation()
+ {
+ return Board.Orientation.fromRotation(getRotation());
+ }
+
public void moveDone()
{
Vector3 v = path.pop();