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, trimToSize
Methods inherited from class java.util.AbstractCollection
containsAll
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, stream, toArray
Methods 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:
toString
in classAbstractCollection<Tile>
-