summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/engine/PossiblePaths.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/PossiblePaths.java b/core/src/ch/asynk/tankontank/engine/PossiblePaths.java
index 2cf45eb..91038da 100644
--- a/core/src/ch/asynk/tankontank/engine/PossiblePaths.java
+++ b/core/src/ch/asynk/tankontank/engine/PossiblePaths.java
@@ -211,6 +211,14 @@ public class PossiblePaths implements Iterable<Vector3>
return cost;
}
+ public void setExit(Orientation exit)
+ {
+ List<Tile> path = getPath(0);
+ Tile exitTile = board.getAdjTileAt(to, exit);
+ path.add(to);
+ to = exitTile;
+ }
+
private List<Tile> getPath(int i)
{
if (ctrlTiles.size() == 0)