diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-12 02:30:00 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-12 02:30:00 +0200 |
commit | b83516d35ddd1d86d08b0ece24eebbf4f15cc6af (patch) | |
tree | f11802d223056728b9965060240fb733fbfd2f4f /core/src/ch | |
parent | 094ceae2e945fc9d19a5ad8446f309c13fa6ff8c (diff) | |
download | RustAndDust-b83516d35ddd1d86d08b0ece24eebbf4f15cc6af.zip RustAndDust-b83516d35ddd1d86d08b0ece24eebbf4f15cc6af.tar.gz |
add a few debug System.err
Diffstat (limited to 'core/src/ch')
4 files changed, 6 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/GameCtrl.java b/core/src/ch/asynk/tankontank/game/GameCtrl.java index fd4fef5..0073c1c 100644 --- a/core/src/ch/asynk/tankontank/game/GameCtrl.java +++ b/core/src/ch/asynk/tankontank/game/GameCtrl.java @@ -124,6 +124,7 @@ public class GameCtrl implements Disposable { this.state.leave(state); + System.err.println("Switch to : " + state + " " + normal); switch(state) { case SELECT: this.state = selectState; diff --git a/core/src/ch/asynk/tankontank/game/Hud.java b/core/src/ch/asynk/tankontank/game/Hud.java index 54c33e6..e7da8aa 100644 --- a/core/src/ch/asynk/tankontank/game/Hud.java +++ b/core/src/ch/asynk/tankontank/game/Hud.java @@ -167,7 +167,7 @@ public class Hud implements Disposable ctrl.setState(GameState.State.ROTATE); else if (btn == attackBtn) // TODO ctrl.setState(GameState.State.ATTACK); - System.out.println(" ATTACK not implemented yet"); + System.err.println(" ATTACK not implemented yet"); else if (btn == checkBtn) ctrl.done(); else if (btn == cancelBtn) diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index fb91254..bb8ff58 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -209,6 +209,7 @@ public abstract class Map extends Board public int movePawn(Pawn pawn, GridPoint2 from, Orientation o) { + System.err.println(" movePawn : " + from.x + ";" + from.y + " " + o); int cost = getPathCost(pawn, 0); int s = getCoordinatePath(pawn, 0, finalPath, o); if (s > 0) { @@ -225,6 +226,7 @@ public abstract class Map extends Board public int rotatePawn(Pawn pawn, GridPoint2 from, Orientation o) { + System.err.println(" rotatePawn : " + from.x + ";" + from.y + " " +o); rotatePawn(pawn, o, RunnableAnimation.get(pawn, new Runnable() { @Override public void run() { @@ -237,6 +239,7 @@ public abstract class Map extends Board public void revertMoves() { + System.err.println(" revertMoves()"); for (Pawn pawn : activatedPawns) { revertLastPawnMove(pawn, RunnableAnimation.get(pawn, new Runnable() { @Override diff --git a/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java b/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java index 456e529..da2d181 100644 --- a/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java +++ b/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java @@ -103,6 +103,7 @@ public abstract class GameStateCommon implements GameState isEnemy = ctrl.currentPlayer.isEnemy(selectedPawn); else isEnemy = false; + System.err.println((isEnemy ? "enemy " : "friend ") + selectedPawn + " (" + selectedHex.x + ";" + selectedHex.y + ")"); } protected boolean hasPawn() |