summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/tankontank/game/GameCtrl.java1
-rw-r--r--core/src/ch/asynk/tankontank/game/Hud.java2
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java3
-rw-r--r--core/src/ch/asynk/tankontank/game/states/GameStateCommon.java1
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()