diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-22 14:31:36 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-22 14:31:36 +0200 |
commit | 86597d8e9f872418bfe547ada30d6943fdbb8c90 (patch) | |
tree | 205f3315bbc72334e65ca99b578507364b4e1d00 /core/src | |
parent | 65d676c114dce17f5d9a208a37f9e386a593e70d (diff) | |
download | RustAndDust-86597d8e9f872418bfe547ada30d6943fdbb8c90.zip RustAndDust-86597d8e9f872418bfe547ada30d6943fdbb8c90.tar.gz |
Board: remove getPawnPosAt(...)
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Board.java | 7 |
1 files changed, 1 insertions, 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); |