summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-06 17:19:21 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-06 17:19:21 +0200
commit3e046e9b05ffc844c69a10bbdfc3e6bf91e4e9e2 (patch)
tree735751064f19a5068e13aaed116869f8f2a6f9a2 /core/src/ch/asynk
parent6a96f4f802b241159c4c9e431658959ee87852d4 (diff)
downloadRustAndDust-3e046e9b05ffc844c69a10bbdfc3e6bf91e4e9e2.zip
RustAndDust-3e046e9b05ffc844c69a10bbdfc3e6bf91e4e9e2.tar.gz
GameStateCommon: downIsHex() -> sameHexes(GridPoint2 a, GridPoint2 b)
Diffstat (limited to 'core/src/ch/asynk')
-rw-r--r--core/src/ch/asynk/tankontank/game/states/GameStateCommon.java4
1 files 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));
}
}