summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-10-28 11:57:20 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2014-10-28 11:57:20 +0100
commit06ebe421c3b6dbd501a124b234a09ba1940b0b72 (patch)
treea8f059e4c694dc510a8e65dd63f384b3d8893a28 /core/src/ch/asynk
parent38243dfc19b9c3e5b1b7ae7f4f463eaac3ce57bc (diff)
downloadRustAndDust-06ebe421c3b6dbd501a124b234a09ba1940b0b72.zip
RustAndDust-06ebe421c3b6dbd501a124b234a09ba1940b0b72.tar.gz
TileList: use Collection interface
Diffstat (limited to 'core/src/ch/asynk')
-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) {