summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-26 16:06:38 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-26 16:06:38 +0200
commiteb7be8286390a24ca8ef530be1ce04c3d3b04039 (patch)
treee1eeae5b1423d1af00275e5da9528f12177ed2c2 /core/src/ch
parent0acbab87ef7d8d858ace9431d05ad61f7d6b7f38 (diff)
downloadRustAndDust-eb7be8286390a24ca8ef530be1ce04c3d3b04039.zip
RustAndDust-eb7be8286390a24ca8ef530be1ce04c3d3b04039.tar.gz
Pawn: add Board.Orientation getOrientation()
Diffstat (limited to 'core/src/ch')
-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();