diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-28 16:29:45 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-10-28 16:29:45 +0100 |
commit | 4383cc0ba8fe4ccac0edd22aee5e7a7d88dad442 (patch) | |
tree | fce919a2a4ee2e4ba17f64d3e1343d7fff386872 /core/src/ch/asynk/tankontank/game | |
parent | 3684b17fb5a8c3ccf725526f446ee90cd94a3406 (diff) | |
download | RustAndDust-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.java | 3 |
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 |