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
This commit is contained in:
parent
cdd0949db3
commit
982c2e6e2b
7 changed files with 27 additions and 85 deletions
|
@ -7,6 +7,7 @@ import java.util.List;
|
|||
import java.util.Set;
|
||||
|
||||
import jrummikub.util.Pair;
|
||||
|
||||
/**
|
||||
* Mock class for {@link Hand}
|
||||
*/
|
||||
|
@ -14,15 +15,10 @@ 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);
|
||||
|
|
|
@ -7,6 +7,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
|
||||
import jrummikub.util.Pair;
|
||||
|
||||
/**
|
||||
* Mock class for {@link Table}
|
||||
*/
|
||||
|
@ -31,12 +32,6 @@ public class MockTable implements ITable {
|
|||
return valid;
|
||||
}
|
||||
|
||||
@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));
|
||||
|
|
Reference in a new issue