summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hex.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hex.java b/core/src/ch/asynk/tankontank/game/Hex.java
index 2d36960..f7b1e23 100644
--- a/core/src/ch/asynk/tankontank/game/Hex.java
+++ b/core/src/ch/asynk/tankontank/game/Hex.java
@@ -36,6 +36,12 @@ public class Hex extends Tile
}
@Override
+ public boolean isOffMap()
+ {
+ return terrain == Terrain.OFFMAP;
+ }
+
+ @Override
public boolean atLeastOneMove(Pawn pawn)
{
if (occupied() || (terrain == Terrain.BLOCKED) || (terrain == Terrain.OFFMAP))