
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@33 72836036-5685-4462-b002-a69064685172
49 lines
941 B
Java
49 lines
941 B
Java
package jrummikub.model;
|
|
|
|
import java.util.Iterator;
|
|
import java.util.List;
|
|
|
|
import jrummikub.util.Pair;
|
|
|
|
/** A StoneTray is a collection of positioned objects (for example {@link Stone}s or {@link StoneSet}s. */
|
|
public class StoneTray<E extends Sizeable> implements Iterable<Pair<E, Position>> {
|
|
protected List<E> objects;
|
|
protected List<Position> positions;
|
|
|
|
/**
|
|
* Removes object from tray and returns it
|
|
*
|
|
* @param position
|
|
* position of the object that will be removed
|
|
*/
|
|
public E pickUp(Position position) {
|
|
|
|
}
|
|
|
|
|
|
/**
|
|
* Adds object to the tray
|
|
*
|
|
* @param object
|
|
* object to add to Hand
|
|
* @param position
|
|
* {@link Position} to put the object
|
|
*/
|
|
public void drop(E object, Position position) {
|
|
|
|
}
|
|
|
|
|
|
public Position getPosition (E object) {
|
|
|
|
|
|
}
|
|
|
|
|
|
@Override
|
|
public Iterator<Pair<E, Position>> iterator() {
|
|
// TODO Auto-generated method stub
|
|
return null;
|
|
}
|
|
|
|
}
|