summaryrefslogtreecommitdiffstats
path: root/core/src
diff options
context:
space:
mode:
Diffstat (limited to 'core/src')
-rw-r--r--core/src/ch/asynk/tankontank/game/HexSet.java4
-rw-r--r--core/src/ch/asynk/tankontank/game/Map.java2
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)