summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-28 23:04:44 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-28 23:04:44 +0100
commite84dd5bba3605c704daf689b8e26ec6e50cb2443 (patch)
tree2c0601c35ddb9130c154735b5b3fb0f970b3e915
parentf1e680df5ab6c10d0307b772b19d1afdc267351c (diff)
downloadRustAndDust-e84dd5bba3605c704daf689b8e26ec6e50cb2443.zip
RustAndDust-e84dd5bba3605c704daf689b8e26ec6e50cb2443.tar.gz
Unit: add getHex()
-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()
{