Package com.takenoko.asset
Class TileDeck
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<Tile>,Collection<Tile>,List<Tile>,RandomAccess
The deck containing all the improvement chips you can place on the tiles.
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAllMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Field Details
-
random
-
canPeek
private boolean canPeek
-
-
Constructor Details
-
TileDeck
public TileDeck() -
TileDeck
-
-
Method Details
-
draw
public void draw()Draw tiles from the deck. -
choose
Choose what tile to place on the board.- Parameters:
tile- the tile to place
-
peek
-
shuffle
private void shuffle() -
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toStringin classAbstractCollection<Tile>
-