summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-01-19 17:26:24 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-01-19 17:26:24 +0100
commit050015f59e3f30980d2e09ad2e0057867c068031 (patch)
treed3784ddc31c3461d91bdc7abad0f93aba887e2e0 /core/src/ch/asynk/tankontank/engine
parent48eded8cfa88420fd21dd3effc5aafca5d6370b8 (diff)
downloadRustAndDust-050015f59e3f30980d2e09ad2e0057867c068031.zip
RustAndDust-050015f59e3f30980d2e09ad2e0057867c068031.tar.gz
StateEscape: if exit from unit hex, build stay path, add runtime exitHex validation
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r--core/src/ch/asynk/tankontank/engine/PossiblePaths.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/PossiblePaths.java b/core/src/ch/asynk/tankontank/engine/PossiblePaths.java
index 49a317f..b54835e 100644
--- a/core/src/ch/asynk/tankontank/engine/PossiblePaths.java
+++ b/core/src/ch/asynk/tankontank/engine/PossiblePaths.java
@@ -235,12 +235,13 @@ public class PossiblePaths implements Disposable
return filteredPaths.get(i);
}
- public void setExit(Orientation exit)
+ public void setExit(Orientation o)
{
+ orientation = o;
Path path = getPath(0);
path.cost += 1;
path.tiles.add(to);
- to = board.getAdjTileAt(to, exit);
+ to = board.getAdjTileAt(to, o);
}
private void printToErr(String what, List<Path> paths)