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 | |
parent | 5f401d5b5cdf8f540b3fb3301ab33878f1d3a2e2 (diff) | |
download | RustAndDust-5ec7fa718f99968c6823ab87e27a2e96f586f77d.zip RustAndDust-5ec7fa718f99968c6823ab87e27a2e96f586f77d.tar.gz |
PathBuilder: impove error msgs
3 files changed, 4 insertions, 4 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) diff --git a/core/src/ch/asynk/rustanddust/game/states/StateRotate.java b/core/src/ch/asynk/rustanddust/game/states/StateRotate.java index 553e5a8..c2a96e8 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateRotate.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateRotate.java @@ -25,7 +25,7 @@ public class StateRotate extends StateCommon } if (map.pathsSize() > 1) - RustAndDust.debug("ERROR: pathsSize() == " + map.pathsSize()); + RustAndDust.debug("ERROR: Rotate pathsSize() == " + map.pathsSize()); rotateOnly = (to == activeUnit.getHex()); diff --git a/core/src/ch/asynk/rustanddust/game/states/StateWithdraw.java b/core/src/ch/asynk/rustanddust/game/states/StateWithdraw.java index 4b3e19a..a759e51 100644 --- a/core/src/ch/asynk/rustanddust/game/states/StateWithdraw.java +++ b/core/src/ch/asynk/rustanddust/game/states/StateWithdraw.java @@ -44,7 +44,7 @@ public class StateWithdraw extends StateCommon map.pathsBuild(hex); if (map.pathsSize() > 1) - RustAndDust.debug("ERROR: pathsSize() == " + map.pathsSize()); + RustAndDust.debug("ERROR: Withdraw pathsSize() == " + map.pathsSize()); Hex exitHex = (Hex) map.pathsTo(); if (!exitZone.contains(exitHex)) |