From 7dc246851d138e2ce3dd8b23b35e7758894eb121 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 18 Feb 2015 15:28:13 +0100 Subject: PathBuilder: add initRotation(Pawn, Orientation), may not be used --- core/src/ch/asynk/tankontank/engine/PathBuilder.java | 7 +++++++ 1 file changed, 7 insertions(+) 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); -- cgit v1.1-2-g2b99