summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/engine/TileList.java15
1 files changed, 2 insertions, 13 deletions
diff --git a/core/src/ch/asynk/tankontank/engine/TileList.java b/core/src/ch/asynk/tankontank/engine/TileList.java
index 8d9078d..b26a5e8 100644
--- a/core/src/ch/asynk/tankontank/engine/TileList.java
+++ b/core/src/ch/asynk/tankontank/engine/TileList.java
@@ -1,8 +1,8 @@
package ch.asynk.tankontank.engine;
-import java.util.Set;
import java.util.List;
import java.util.ArrayList;
+import java.util.Collection;
public class TileList extends ArrayList<Tile>
{
@@ -16,18 +16,7 @@ public class TileList extends ArrayList<Tile>
this.overlay = overlay;
}
- public int fromNodes(List<SearchBoard.Node> nodes)
- {
- clear();
- for (SearchBoard.Node node : nodes) {
- Tile tile = board.getTile(node.col, node.row);
- add(tile);
- }
-
- return size();
- }
-
- public int fromNodes(Set<SearchBoard.Node> nodes)
+ public int fromNodes(Collection<SearchBoard.Node> nodes)
{
clear();
for (SearchBoard.Node node : nodes) {