diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-05-10 16:31:09 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-05-10 16:31:09 +0200 |
commit | 982c2e6e2baf20eace331c19f6aef91b29e3c773 (patch) | |
tree | afabe6e9fc50cc7e5d1a83ed586c4acec58f7dd7 /mock/jrummikub/model/MockHand.java | |
parent | cdd0949db3bdec31a4d0516bc9180ca39dca2782 (diff) | |
download | JRummikub-982c2e6e2baf20eace331c19f6aef91b29e3c773.tar JRummikub-982c2e6e2baf20eace331c19f6aef91b29e3c773.zip |
Rechtschreibfehler und überflüssige pickUp(position) Klasse gefixt
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@227 72836036-5685-4462-b002-a69064685172
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); |