diff options
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/rustanddust/engine/PathBuilder.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/map/Map2Moves.java | 2 | ||||
-rw-r--r-- | core/src/ch/asynk/rustanddust/game/states/StateMove.java | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java index 28527d7..70c9236 100644 --- a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java +++ b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java @@ -121,7 +121,7 @@ public class PathBuilder implements Disposable return paths.size(); } - public int choosePath() + public int chooseBest() { if (paths.size() > 1) { Path good = paths.get(0); diff --git a/core/src/ch/asynk/rustanddust/game/map/Map2Moves.java b/core/src/ch/asynk/rustanddust/game/map/Map2Moves.java index 239e38e..c235de3 100644 --- a/core/src/ch/asynk/rustanddust/game/map/Map2Moves.java +++ b/core/src/ch/asynk/rustanddust/game/map/Map2Moves.java @@ -74,7 +74,7 @@ public abstract class Map2Moves extends Map1Units public boolean pathsCanExit(Orientation o) { return paths.canExit(o); } public void pathsSetExit(Orientation o) { paths.setExit(o); } public boolean pathsContains(Hex hex) { return paths.contains(hex); } - public int pathsChooseOne() { return paths.choosePath(); } + public int pathsChooseBest() { return paths.chooseBest(); } public int pathsToggleHex(Hex hex) { boolean enable = !hex.isOverlayEnabled(Hex.MOVE); diff --git a/core/src/ch/asynk/rustanddust/game/states/StateMove.java b/core/src/ch/asynk/rustanddust/game/states/StateMove.java index 6d1d7c7..1a088ac 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateMove.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateMove.java @@ -150,7 +150,7 @@ public class StateMove extends StateCommon to = hex; int s = map.pathsBuild(to); if (cfg.autoPath && (s > 1)) - s = map.pathsChooseOne(); + s = map.pathsChooseBest(); map.hexMoveShow(to); map.movesHide(); map.pathsShow(); |