diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-04 23:46:33 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-04 23:46:33 +0100 |
commit | 9b760a3cfee8964620f8faed051159fd1ee4ba42 (patch) | |
tree | b57cf231a36a2f8f245a94afa98c2e8bdc40a5d9 /core/src/ch/asynk/rustanddust/game/states | |
parent | 79054924a90058a4cf700ca441a7f5009bd652e3 (diff) | |
download | RustAndDust-9b760a3cfee8964620f8faed051159fd1ee4ba42.zip RustAndDust-9b760a3cfee8964620f8faed051159fd1ee4ba42.tar.gz |
PathBuilder: replace setExit(Orientation) with chooseExit(Orientation)
Diffstat (limited to 'core/src/ch/asynk/rustanddust/game/states')
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/states/StateWithdraw.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/core/src/ch/asynk/rustanddust/game/states/StateWithdraw.java b/core/src/ch/asynk/rustanddust/game/states/StateWithdraw.java index a759e51..12bb3c4 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateWithdraw.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateWithdraw.java @@ -43,14 +43,12 @@ public class StateWithdraw extends StateCommon if (map.pathsTo() == null) map.pathsBuild(hex); - if (map.pathsSize() > 1) - RustAndDust.debug("ERROR: Withdraw pathsSize() == " + map.pathsSize()); - Hex exitHex = (Hex) map.pathsTo(); if (!exitZone.contains(exitHex)) throw new RuntimeException(String.format("%s not in exitZone", exitHex)); - map.pathsSetExit(exitZone.orientation); + if (map.pathsChooseExit(exitZone.orientation) > 1) + RustAndDust.debug("ERROR: Withdraw pathsSize() == " + map.pathsSize()); unit.hideActiveable(); if (to != null) |