summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/rustanddust
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/rustanddust')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/PathBuilder.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java
index 3692a91..7023727 100644
--- a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java
+++ b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java
@@ -119,6 +119,21 @@ public class PathBuilder implements Disposable
return paths.size();
}
+ public int choosePath()
+ {
+ if (paths.size() > 1) {
+ ctrlTiles.clear();
+ Path good = paths.get(1);
+ for (Tile tile : good.tiles) {
+ toggleCtrlTile(tile);
+ if (paths.size() == 1)
+ break;
+ }
+ }
+
+ return 1;
+ }
+
private void findAllPaths(Tile from, int mvtLeft, boolean roadMarch)
{
Tile moves[] = new Tile[6];