summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank/game
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-28 16:29:45 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-28 16:29:45 +0100
commit4383cc0ba8fe4ccac0edd22aee5e7a7d88dad442 (patch)
treefce919a2a4ee2e4ba17f64d3e1343d7fff386872 /core/src/ch/asynk/tankontank/game
parent3684b17fb5a8c3ccf725526f446ee90cd94a3406 (diff)
downloadRustAndDust-4383cc0ba8fe4ccac0edd22aee5e7a7d88dad442.zip
RustAndDust-4383cc0ba8fe4ccac0edd22aee5e7a7d88dad442.tar.gz
Tile: getIterator() -> iterator(), getTopPawn() goes private
Diffstat (limited to 'core/src/ch/asynk/tankontank/game')
-rw-r--r--core/src/ch/asynk/tankontank/game/Hex.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Hex.java b/core/src/ch/asynk/tankontank/game/Hex.java
index 86c511b..77b8bfd 100644
--- a/core/src/ch/asynk/tankontank/game/Hex.java
+++ b/core/src/ch/asynk/tankontank/game/Hex.java
@@ -47,8 +47,7 @@ public class Hex extends Tile
public Unit getUnit()
{
- // FIXME ??????
- return (Unit) getTopPawn();
+ return (Unit) iterator().next();
}
@Override