diff options
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Hex.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hex.java b/core/src/ch/asynk/tankontank/game/Hex.java index 656a1e6..7abf0d3 100644 --- a/core/src/ch/asynk/tankontank/game/Hex.java +++ b/core/src/ch/asynk/tankontank/game/Hex.java @@ -12,7 +12,7 @@ import ch.asynk.tankontank.engine.Orientation; public class Hex extends Tile { - public enum Terrain + public enum Terrain implements TileTerrain { OFFMAP, BLOCKED, @@ -52,6 +52,12 @@ public class Hex extends Tile } @Override + public boolean isA(TileTerrain terrain) + { + return (this.terrain == terrain); + } + + @Override public boolean isOffMap() { return terrain == Terrain.OFFMAP; |