summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-03 10:12:13 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-03 10:12:13 +0200
commit4fafb181dd150b31ea2a46826515d91f7f277136 (patch)
treed0c1c0524c0daa1ed39c91fec35da7cf404d5f1b /core/src/ch/asynk/tankontank/game
parenta69bb5652bb5228cb3718f2c4503e3490c1072fa (diff)
downloadRustAndDust-4fafb181dd150b31ea2a46826515d91f7f277136.zip
RustAndDust-4fafb181dd150b31ea2a46826515d91f7f277136.tar.gz
Board: API goes GridPoint2
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java
index a7bfc59..2c2e775 100644
--- a/core/src/ch/asynk/tankontank/game/Map.java
+++ b/core/src/ch/asynk/tankontank/game/Map.java
@@ -94,9 +94,9 @@ public abstract class Map extends Board
return possiblePaths(pawn, from, to, possiblePaths);
}
- public int possiblePathsPointToggle(GridPoint2 point)
+ public int possiblePathsPointToggle(GridPoint2 hex)
{
- return possiblePathsFilterToggle(point.x, point.y, possiblePaths);
+ return possiblePathsFilterToggle(hex, possiblePaths);
}
public void clearPossibles()
@@ -111,7 +111,7 @@ public abstract class Map extends Board
public void toggleDotOverlay(GridPoint2 hex)
{
- boolean enable= !isOverlayEnabledOn(hex.x, hex.y, Hex.DOT);
+ boolean enable= !isOverlayEnabledOn(hex, Hex.DOT);
enableOverlayOn(hex, Hex.DOT, enable);
}