Package com.takenoko.asset
Class ObjectiveDeck
- All Implemented Interfaces:
Serializable
,Cloneable
,Iterable<Objective>
,Collection<Objective>
,List<Objective>
,RandomAccess
The deck containing all the different objectives.
- See Also:
-
Field Summary
FieldsFields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
draw
(ObjectiveType objectiveType) boolean
Create the starter deck for a playerint
hashCode()
boolean
hasObjectiveType
(ObjectiveType objectiveType) peek()
toString()
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
-
lastDrawnObjective
-
-
Constructor Details
-
ObjectiveDeck
public ObjectiveDeck() -
ObjectiveDeck
-
-
Method Details
-
draw
-
peek
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toString
in classAbstractCollection<Objective>
-
getStarterDeck
Create the starter deck for a player- Returns:
- List of objectives
-
hasObjectiveType
-