summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/engine
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-07 09:44:50 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-07 09:44:50 +0200
commiteaf866fee4c460a4e63dd0b61ffff5f8cdf9a698 (patch)
tree886d73128ec85d270a49ef199bfda6b9d4c77a3f /core/src/ch/asynk/tankontank/engine
parent0cab5c0fec6c2a48585d1d6c27009247c1d585aa (diff)
downloadRustAndDust-eaf866fee4c460a4e63dd0b61ffff5f8cdf9a698.zip
RustAndDust-eaf866fee4c460a4e63dd0b61ffff5f8cdf9a698.tar.gz
Board: add commented debug in getCoordinatePath()
Diffstat (limited to 'core/src/ch/asynk/tankontank/engine')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Board.java7
1 files changed, 7 insertions, 0 deletions
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<SearchBoard.Node> 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();
}