diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-04 16:11:20 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2016-01-04 16:11:20 +0100 |
commit | 5ec7fa718f99968c6823ab87e27a2e96f586f77d (patch) | |
tree | 3e6ecb029adee31f5bbec0067cb2a4e663cfc36c /core/src/ch/asynk/rustanddust/engine | |
parent | 5f401d5b5cdf8f540b3fb3301ab33878f1d3a2e2 (diff) | |
download | RustAndDust-5ec7fa718f99968c6823ab87e27a2e96f586f77d.zip RustAndDust-5ec7fa718f99968c6823ab87e27a2e96f586f77d.tar.gz |
PathBuilder: impove error msgs
Diffstat (limited to 'core/src/ch/asynk/rustanddust/engine')
-rw-r--r-- | core/src/ch/asynk/rustanddust/engine/PathBuilder.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java index 9d564b5..9955b92 100644 --- a/core/src/ch/asynk/rustanddust/engine/PathBuilder.java +++ b/core/src/ch/asynk/rustanddust/engine/PathBuilder.java @@ -223,7 +223,7 @@ public class PathBuilder implements Disposable public Move getMove() { if (size() != 1) { - System.err.println("ERROR not a sigle path found"); + System.err.println("ERROR PathBuilder not a single path found"); printToErr("paths", paths); return null; } @@ -279,7 +279,7 @@ public class PathBuilder implements Disposable private void printToErr(String what, List<Path> paths) { - System.err.println(what + pawn + " ("+paths.size()+") " + from + " -> " + to); + System.err.println(what + " " + paths.size() + " - " + from + " -> " + to); for (Path path : paths) { System.err.println(String.format(" - path (l:%d c:%d r:%b f:%d)", path.tiles.size(), path.cost, path.roadMarch, path.fitness)); for(Tile tile : path.tiles) |