From 3e046e9b05ffc844c69a10bbdfc3e6bf91e4e9e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 6 Oct 2014 17:19:21 +0200 Subject: GameStateCommon: downIsHex() -> sameHexes(GridPoint2 a, GridPoint2 b) --- core/src/ch/asynk/tankontank/game/states/GameStateCommon.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java b/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java index 8b921f7..eb45d51 100644 --- a/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java +++ b/core/src/ch/asynk/tankontank/game/states/GameStateCommon.java @@ -95,8 +95,8 @@ public abstract class GameStateCommon implements GameState map.enableOverlayOn(hex, Hex.BLUE, true); } - protected boolean downIsHex() + protected boolean sameHexes(GridPoint2 a, GridPoint2 b) { - return ((downHex.x == hex.x) && (upHex.y == hex.y)); + return ((a.x == b.x) && (a.y == b.y)); } } -- cgit v1.1-2-g2b99