From d8b0575ebc75691012eddb2590d5d95464a55d1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 14 Oct 2014 09:32:47 +0200 Subject: unify error msgs --- core/src/ch/asynk/tankontank/engine/SearchBoard.java | 2 +- core/src/ch/asynk/tankontank/game/Player.java | 2 +- core/src/ch/asynk/tankontank/game/Unit.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/ch/asynk/tankontank/engine/SearchBoard.java b/core/src/ch/asynk/tankontank/engine/SearchBoard.java index 8117434..49b4264 100644 --- a/core/src/ch/asynk/tankontank/engine/SearchBoard.java +++ b/core/src/ch/asynk/tankontank/engine/SearchBoard.java @@ -360,7 +360,7 @@ public class SearchBoard return false; if (!validatePathAngle(pawn.getAngleOfAttack(), los)) { - System.err.println("angleOfAttack is not respected"); + System.err.println("ERROR: angleOfAttack is not respected, please report"); return false; } diff --git a/core/src/ch/asynk/tankontank/game/Player.java b/core/src/ch/asynk/tankontank/game/Player.java index e6bef72..ca8716c 100644 --- a/core/src/ch/asynk/tankontank/game/Player.java +++ b/core/src/ch/asynk/tankontank/game/Player.java @@ -74,7 +74,7 @@ public class Player implements Drawable, Disposable public void burnDownOneAp() { actionPoints -= 1; - if (actionPoints < 0) System.err.println("AP < 0, damn that's very wrong"); + if (actionPoints < 0) System.err.println("ERROR: AP < 0, damn that's very wrong, please report"); } public void turnEnd() diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java index d9ac448..b559489 100644 --- a/core/src/ch/asynk/tankontank/game/Unit.java +++ b/core/src/ch/asynk/tankontank/game/Unit.java @@ -153,7 +153,7 @@ public class Unit extends HeadedPawn public void move(int cost) { hasMoved = true; - if (cost > mp) System.err.println("Movement point exceeded: " + cost + "/" + mp); + if (cost > mp) System.err.println("ERROR: Movement point exceeded: " + cost + "/" + mp + " please report"); } @Override -- cgit v1.1-2-g2b99