summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java
index e22bfc2..5ae19b0 100644
--- a/core/src/ch/asynk/tankontank/game/Unit.java
+++ b/core/src/ch/asynk/tankontank/game/Unit.java
@@ -88,6 +88,11 @@ public class Unit extends HeadedPawn
this.descr = id.toString() + " (" + rng + "-" + def + "/" + cdef + "-" + mp + ")";
}
+ public Hex getHex()
+ {
+ return (Hex) getTile();
+ }
+
@Override
public int getMovementPoints()
{