summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/tankontank/engine/PathBuilder.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/PathBuilder.java b/core/src/ch/asynk/tankontank/engine/PathBuilder.java
index f3ebb87..d63b0b0 100644
--- a/core/src/ch/asynk/tankontank/engine/PathBuilder.java
+++ b/core/src/ch/asynk/tankontank/engine/PathBuilder.java
@@ -49,6 +49,13 @@ public class PathBuilder implements Disposable
init(pawn, pawn.getTile());
}
+ public void initRotation(Pawn pawn, Orientation o)
+ {
+ init(pawn, pawn.getTile());
+ build(pawn.getTile());
+ orientation = o;
+ }
+
public boolean isSet()
{
return (to != null);