From 86597d8e9f872418bfe547ada30d6943fdbb8c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Wed, 22 Oct 2014 14:31:36 +0200 Subject: Board: remove getPawnPosAt(...) --- core/src/ch/asynk/tankontank/engine/Board.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java index 66e3fd7..aa58bab 100644 --- a/core/src/ch/asynk/tankontank/engine/Board.java +++ b/core/src/ch/asynk/tankontank/engine/Board.java @@ -435,7 +435,7 @@ public abstract class Board implements Disposable v = vector3Pool.obtain(); } tmpHex.set(node.col, node.row); - getPawnPosAt(pawn, tmpHex, tmpCoords); + pawn.getPosAt(getTile(tmpHex.x, tmpHex.y), tmpCoords); v.set(tmpCoords.x, tmpCoords.y, o.r()); path.add(v); prevOrientation = o; @@ -520,11 +520,6 @@ public abstract class Board implements Disposable return n; } - protected Vector2 getPawnPosAt(Pawn pawn, GridPoint2 coords, Vector2 pos) - { - return pawn.getPosAt(getTile(coords.x, coords.y), pos); - } - public Pawn setPawnAt(Pawn pawn, GridPoint2 coords, Orientation o) { Vector2 pos = getPawnPosAt(pawn, coords, null); -- cgit v1.1-2-g2b99