summaryrefslogtreecommitdiffstats
path: root/core/src/ch
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2016-01-04 20:43:53 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2016-01-04 20:43:53 +0100
commit24deb1faa19371913ac0fdce12687710d9e2392b (patch)
tree5f7b40a8c168366453587eac60f1daf0ae37999f /core/src/ch
parent9049d13178f17cf95986c6a26dc02676537cf138 (diff)
downloadRustAndDust-24deb1faa19371913ac0fdce12687710d9e2392b.zip
RustAndDust-24deb1faa19371913ac0fdce12687710d9e2392b.tar.gz
PathBuilder: choosePath() -p chooseBest()
Diffstat (limited to 'core/src/ch')
-rw-r--r--core/src/ch/asynk/rustanddust/engine/PathBuilder.java2
-rw-r--r--core/src/ch/asynk/rustanddust/game/map/Map2Moves.java2
-rw-r--r--core/src/ch/asynk/rustanddust/game/states/StateMove.java2
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();