diff options
Diffstat (limited to 'src/jrummikub/model/StoneHeap.java')
-rw-r--r-- | src/jrummikub/model/StoneHeap.java | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/jrummikub/model/StoneHeap.java b/src/jrummikub/model/StoneHeap.java index 42cb01e..ae84cef 100644 --- a/src/jrummikub/model/StoneHeap.java +++ b/src/jrummikub/model/StoneHeap.java @@ -1,6 +1,7 @@ package jrummikub.model; import java.util.ArrayList; +import java.util.Collection; import java.util.EnumSet; import java.util.List; import java.util.Random; @@ -42,7 +43,7 @@ public class StoneHeap { * Removes several {@link Stone}s from the heap and returns them * * @param number - * number of requested Stones + * number of requested Stones * @return list of drawn stones */ public List<Stone> drawStones(int number) { @@ -56,4 +57,8 @@ public class StoneHeap { public int getSize() { return heap.size(); } + + public void putBack(Collection<Stone> stones) { + heap.addAll(stones); + } } |