From ab6174f8efd85c7fd067465f0fded88807c3c155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 28 Oct 2014 16:08:52 +0100 Subject: Hex: add Unit getUnit() --- core/src/ch/asynk/tankontank/game/Hex.java | 6 ++++++ 1 file changed, 6 insertions(+) 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() { -- cgit v1.1-2-g2b99