diff options
Diffstat (limited to 'mock/jrummikub/model/MockHand.java')
-rw-r--r-- | mock/jrummikub/model/MockHand.java | 11 |
1 files changed, 4 insertions, 7 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); |