diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-28 16:08:52 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-28 16:08:52 +0100 |
commit | ab6174f8efd85c7fd067465f0fded88807c3c155 (patch) | |
tree | ea7ef1e306f809b3669aca04f7547062cb2eb2f4 /core/src | |
parent | a5e60eb6f1d4335406bb53500e7dd87182d67a1a (diff) | |
download | RustAndDust-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.java | 6 |
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() { |