Interface Deck
- All Superinterfaces:
Cloneable
- All Known Implementing Classes:
CollectionDeck
,GameDeck
A deck has, at minimum, a deck ID. The implementor
GameDeck
contains references to actual cards.-
Method Summary
Modifier and TypeMethodDescriptionclone()
static @NotNull GameDeck
Retrieves a deck from a deck string, either in a community format or using a deck string.static CollectionDeck
static @NotNull GameDeck
static @NotNull GameDeck
randomDeck
(long seed) static @NotNull GameDeck
randomDeck
(@NotNull String heroClass) static @NotNull GameDeck
randomDeck
(@NotNull String heroClass, @NotNull DeckFormat deckFormat) Creates a random deck with the given hero class and deck format.static @NotNull GameDeck
randomDeck
(@NotNull DeckFormat deckFormat)
-
Method Details
-
randomDeck
@NotNull static @NotNull GameDeck randomDeck(@NotNull @NotNull String heroClass, @NotNull @NotNull DeckFormat deckFormat) Creates a random deck with the given hero class and deck format.The random deck creation function tries to make a balance of 50% class cards and 50% neutrals.
- Parameters:
heroClass
- A hero class that is a base classdeckFormat
- A deck format, likeDeckFormat.spellsource()
.- Returns:
-
randomDeck
-
randomDeck
-
randomDeck
-
deckList
Retrieves a deck from a deck string, either in a community format or using a deck string.- Parameters:
deckList
-- Returns:
-
randomDeck
-
forId
-
getDeckId
String getDeckId() -
clone
Deck clone()
-