summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-28 16:08:52 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-28 16:08:52 +0100
commitab6174f8efd85c7fd067465f0fded88807c3c155 (patch)
treeea7ef1e306f809b3669aca04f7547062cb2eb2f4 /core/src
parenta5e60eb6f1d4335406bb53500e7dd87182d67a1a (diff)
downloadRustAndDust-ab6174f8efd85c7fd067465f0fded88807c3c155.zip
RustAndDust-ab6174f8efd85c7fd067465f0fded88807c3c155.tar.gz
Hex: add Unit getUnit()
Diffstat (limited to 'core/src')
-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 e5a61d4..86c511b 100644
--- a/core/src/ch/asynk/tankontank/game/Hex.java
+++ b/core/src/ch/asynk/tankontank/game/Hex.java
@@ -45,6 +45,12 @@ public class Hex extends Tile
this.roads = 0;
}
+ public Unit getUnit()
+ {
+ // FIXME ??????
+ return (Unit) getTopPawn();
+ }
+
@Override
public boolean isOffMap()
{