diff options
Diffstat (limited to 'src/jrummikub')
-rw-r--r-- | src/jrummikub/model/IStoneTray.java | 2 | ||||
-rw-r--r-- | src/jrummikub/model/StoneTray.java | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/jrummikub/model/IStoneTray.java b/src/jrummikub/model/IStoneTray.java index bdf7f86..11fcbbb 100644 --- a/src/jrummikub/model/IStoneTray.java +++ b/src/jrummikub/model/IStoneTray.java @@ -33,7 +33,7 @@ public interface IStoneTray<E extends Sizeable> extends */
public Position getPosition(E object);
- public void pickUp(E object);
+ public boolean pickUp(E object);
public IStoneTray<E> clone();
diff --git a/src/jrummikub/model/StoneTray.java b/src/jrummikub/model/StoneTray.java index 8b83371..3418aec 100644 --- a/src/jrummikub/model/StoneTray.java +++ b/src/jrummikub/model/StoneTray.java @@ -217,8 +217,8 @@ public class StoneTray<E extends Sizeable> implements IStoneTray<E> { * @see jrummikub.model.IStoneTray#pickUp(E) */ @Override - public void pickUp(E object) { - objects.remove(object); + public boolean pickUp(E object) { + return null != objects.remove(object); } /* |