summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-02-18 15:28:13 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-02-18 15:28:13 +0100
commit7dc246851d138e2ce3dd8b23b35e7758894eb121 (patch)
tree4a2674ca4e90934f2d10fbf2b183e0e088d71f38 /core/src/ch/asynk/tankontank/engine
parentba74c5870735ae8546dd9de55c50190843b6aa6f (diff)
downloadRustAndDust-7dc246851d138e2ce3dd8b23b35e7758894eb121.zip
RustAndDust-7dc246851d138e2ce3dd8b23b35e7758894eb121.tar.gz
PathBuilder: add initRotation(Pawn, Orientation), may not be used
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-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);