summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub
diff options
context:
space:
mode:
Diffstat (limited to 'mock/jrummikub')
-rw-r--r--mock/jrummikub/model/MockHand.java11
-rw-r--r--mock/jrummikub/model/MockTable.java7
2 files changed, 5 insertions, 13 deletions
diff --git a/mock/jrummikub/model/MockHand.java b/mock/jrummikub/model/MockHand.java
index dc348c0..d262c87 100644
--- a/mock/jrummikub/model/MockHand.java
+++ b/mock/jrummikub/model/MockHand.java
@@ -7,6 +7,7 @@ import java.util.List;
import java.util.Set;
import jrummikub.util.Pair;
+
/**
* Mock class for {@link Hand}
*/
@@ -14,16 +15,11 @@ public class MockHand implements IHand {
/** */
public List<Pair<Stone, Position>> stones = new ArrayList<Pair<Stone, Position>>();
/** */
- public Set<Stone> pickups = new HashSet<Stone>();
+ public Set<Stone> pickups = new HashSet<Stone>();
/** */
public Iterable<Pair<Stone, Position>> iterable;
@Override
- public Stone pickUp(Position position) {
- return null;
- }
-
- @Override
public void drop(Stone object, Position position) {
stones.add(new Pair<Stone, Position>(object, position));
}
@@ -36,7 +32,8 @@ public class MockHand implements IHand {
@Override
public boolean pickUp(Stone object) {
- List<Pair<Stone, Position>> itList = new ArrayList<Pair<Stone, Position>>(stones);
+ List<Pair<Stone, Position>> itList = new ArrayList<Pair<Stone, Position>>(
+ stones);
for (Pair<Stone, Position> entry : itList) {
if (entry.getFirst() == object) {
stones.remove(entry);
diff --git a/mock/jrummikub/model/MockTable.java b/mock/jrummikub/model/MockTable.java
index 0ff041e..39535ec 100644
--- a/mock/jrummikub/model/MockTable.java
+++ b/mock/jrummikub/model/MockTable.java
@@ -7,6 +7,7 @@ import java.util.List;
import java.util.Map;
import jrummikub.util.Pair;
+
/**
* Mock class for {@link Table}
*/
@@ -32,12 +33,6 @@ public class MockTable implements ITable {
}
@Override
- public StoneSet pickUp(Position position) {
- // TODO Auto-generated method stub
- return null;
- }
-
- @Override
public void drop(StoneSet object, Position position) {
sets.add(new Pair<StoneSet, Position>(object, position));
}