tested and implemented clone() in StoneTray

git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@84 72836036-5685-4462-b002-a69064685172
This commit is contained in:
Jannis Harder 2011-05-03 19:06:12 +02:00
parent f8f75fde6d
commit 88292e9304
2 changed files with 31 additions and 3 deletions

View file

@ -209,11 +209,16 @@ public class StoneTray<E extends Sizeable> implements
};
}
/**
* @param object
*/
public void pickUp(E object) {
objects.remove(object);
}
@Override
public StoneTray<E> clone() {
StoneTray<E> copy = new StoneTray();
copy.objects = (HashMap<E, Position>) objects.clone();
return copy;
}
}