From eaf866fee4c460a4e63dd0b61ffff5f8cdf9a698 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 7 Oct 2014 09:44:50 +0200 Subject: Board: add commented debug in getCoordinatePath() --- core/src/ch/asynk/tankontank/engine/Board.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java index 5b5ecf8..9d3ae65 100644 --- a/core/src/ch/asynk/tankontank/engine/Board.java +++ b/core/src/ch/asynk/tankontank/engine/Board.java @@ -347,9 +347,12 @@ public abstract class Board implements Disposable ArrayList nodes = paths.get(0); SearchBoard.Node prevNode = nodes.get(0); + // Gdx.app.debug("Board", "getCoordinatePath()"); + // Gdx.app.debug("Board", " " + prevNode); for (int i = 1, n = nodes.size(); i < n; i++) { SearchBoard.Node node = nodes.get(i); + // Gdx.app.debug("Board", " " + node); Orientation o = Orientation.fromMove(prevNode.col, prevNode.row, node.col, node.row); if ((o != Orientation.KEEP) && (o != prevOrientation)) { v.z = o.r(); @@ -376,6 +379,10 @@ public abstract class Board implements Disposable gridPoint2Pool.free(tmpHex); + // Gdx.app.debug("Board", " =>"); + // for (Vector3 vector :path) + // Gdx.app.debug("Board", " " + vector); + return path.size(); } -- cgit v1.1-2-g2b99