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 TypeMethodDescriptionvoiddraw(ObjectiveType objectiveType) booleanCreate the starter deck for a playerinthashCode()booleanhasObjectiveType(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, 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
-
lastDrawnObjective
-
-
Constructor Details
-
ObjectiveDeck
public ObjectiveDeck() -
ObjectiveDeck
-
-
Method Details
-
draw
-
peek
-
equals
-
hashCode
public int hashCode() -
toString
- Overrides:
toStringin classAbstractCollection<Objective>
-
getStarterDeck
Create the starter deck for a player- Returns:
- List of objectives
-
hasObjectiveType
-