Interface Deck

All Superinterfaces:
Cloneable
All Known Implementing Classes:
CollectionDeck, GameDeck

public interface Deck extends Cloneable
A deck has, at minimum, a deck ID. The implementor GameDeck contains references to actual cards.
  • 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 class
      deckFormat - A deck format, like DeckFormat.spellsource().
      Returns:
    • randomDeck

      @NotNull static @NotNull GameDeck randomDeck(@NotNull @NotNull DeckFormat deckFormat)
    • randomDeck

      @NotNull static @NotNull GameDeck randomDeck(@NotNull @NotNull String heroClass)
    • randomDeck

      @NotNull static @NotNull GameDeck randomDeck()
    • deckList

      @NotNull static @NotNull GameDeck deckList(@NotNull @NotNull String deckList)
      Retrieves a deck from a deck string, either in a community format or using a deck string.
      Parameters:
      deckList -
      Returns:
    • randomDeck

      @NotNull static @NotNull GameDeck randomDeck(long seed)
    • forId

      static CollectionDeck forId(String id)
    • getDeckId

      String getDeckId()
    • clone

      Deck clone()