summaryrefslogtreecommitdiffstats
path: root/mock/jrummikub/model
diff options
context:
space:
mode:
authorIda Massow <massow@informatik.uni-luebeck.de>2011-05-10 16:31:09 +0200
committerIda Massow <massow@informatik.uni-luebeck.de>2011-05-10 16:31:09 +0200
commit982c2e6e2baf20eace331c19f6aef91b29e3c773 (patch)
treeafabe6e9fc50cc7e5d1a83ed586c4acec58f7dd7 /mock/jrummikub/model
parentcdd0949db3bdec31a4d0516bc9180ca39dca2782 (diff)
downloadJRummikub-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')
-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));
}