diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-22 10:20:03 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-22 10:20:03 +0200 |
commit | 5fe1c326cdf6a686072adb84ba2aeb7377505aaa (patch) | |
tree | 5a81fd5d664f0142c3c22b09670f8b970595c8a1 /core/src/ch/asynk/tankontank | |
parent | 17ce53d34b3d824a0e8396de7c7d14740aa224bd (diff) | |
download | RustAndDust-5fe1c326cdf6a686072adb84ba2aeb7377505aaa.zip RustAndDust-5fe1c326cdf6a686072adb84ba2aeb7377505aaa.tar.gz |
Board: cell -> tile
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r-- | core/src/ch/asynk/tankontank/engine/Board.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/Board.java b/core/src/ch/asynk/tankontank/engine/Board.java index 7c77c75..5dd7b3c 100644 --- a/core/src/ch/asynk/tankontank/engine/Board.java +++ b/core/src/ch/asynk/tankontank/engine/Board.java @@ -198,9 +198,9 @@ public abstract class Board extends Image implements Disposable tilesToDraw.remove(tile); } - public Pawn getTopPawnAt(GridPoint2 cell) + public Pawn getTopPawnAt(GridPoint2 tile) { - return getTopPawnAt(cell.x, cell.y); + return getTopPawnAt(tile.x, tile.y); } private Pawn getTopPawnAt(int col, int row) @@ -224,17 +224,17 @@ public abstract class Board extends Image implements Disposable return n; } - public Vector2 getHexCenterAt(GridPoint2 cell) + public Vector2 getHexCenterAt(GridPoint2 tile) { - float x = cfg.x0 + ((cell.x * cfg.w) + (cfg.w / 2)); - float y = cfg.y0 + ((cell.y * cfg.h) + (cfg.s / 2)); - if ((cell.y % 2) == 1) x += cfg.dw; + float x = cfg.x0 + ((tile.x * cfg.w) + (cfg.w / 2)); + float y = cfg.y0 + ((tile.y * cfg.h) + (cfg.s / 2)); + if ((tile.y % 2) == 1) x += cfg.dw; return new Vector2(x, y); } - public Vector2 getPawnPosAt(Pawn pawn, GridPoint2 cell) + public Vector2 getPawnPosAt(Pawn pawn, GridPoint2 tile) { - return getPawnPosAt(pawn, cell.x, cell.y); + return getPawnPosAt(pawn, tile.x, tile.y); } private Vector2 getPawnPosAt(Pawn pawn, int col, int row) |