diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-18 15:28:13 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2015-02-18 15:28:13 +0100 |
commit | 7dc246851d138e2ce3dd8b23b35e7758894eb121 (patch) | |
tree | 4a2674ca4e90934f2d10fbf2b183e0e088d71f38 /core | |
parent | ba74c5870735ae8546dd9de55c50190843b6aa6f (diff) | |
download | RustAndDust-7dc246851d138e2ce3dd8b23b35e7758894eb121.zip RustAndDust-7dc246851d138e2ce3dd8b23b35e7758894eb121.tar.gz |
PathBuilder: add initRotation(Pawn, Orientation), may not be used
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/PathBuilder.java | 7 |
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); |