summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/engine/Board.java16
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)