diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-20 13:47:02 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-11-20 13:47:02 +0100 |
commit | 893541b6132bf71e62c4cc4d3bcec844dee0b4be (patch) | |
tree | 6bf774a9fcbd796134922356a0f4a55152c6839d /core | |
parent | 4afc2ac7c837ae645733109a161305c804a1b45a (diff) | |
download | RustAndDust-893541b6132bf71e62c4cc4d3bcec844dee0b4be.zip RustAndDust-893541b6132bf71e62c4cc4d3bcec844dee0b4be.tar.gz |
HexSet: hexAsTiles() -> asTiles()
Diffstat (limited to 'core')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/HexSet.java | 4 | ||||
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Map.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/core/src/ch/asynk/tankontank/game/HexSet.java b/core/src/ch/asynk/tankontank/game/HexSet.java index 436c727..2f78a89 100644 --- a/core/src/ch/asynk/tankontank/game/HexSet.java +++ b/core/src/ch/asynk/tankontank/game/HexSet.java @@ -21,8 +21,8 @@ public class HexSet extends LinkedHashSet<Hex> map.enableOverlayOn(hex, i, enable); } - @SuppressWarnings("unchecked") - public Collection<Tile> hexAsTiles() + @SuppressWarnings("unchecked") + public Collection<Tile> asTiles() { return (Collection) this; } diff --git a/core/src/ch/asynk/tankontank/game/Map.java b/core/src/ch/asynk/tankontank/game/Map.java index 2a5ff2f..f4c54e5 100644 --- a/core/src/ch/asynk/tankontank/game/Map.java +++ b/core/src/ch/asynk/tankontank/game/Map.java @@ -114,7 +114,7 @@ public abstract class Map extends Board possibleMoves.clear(); return 0; } - return collectPossibleMoves(unit, possibleMoves.hexAsTiles()); + return collectPossibleMoves(unit, possibleMoves.asTiles()); } public int togglePossiblePathHex(Hex hex) |