Class DeckFormat
java.lang.Object
net.demilich.metastone.game.decks.DeckFormat
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
FixedCardsDeckFormat
The sets that are available to build decks from and generate cards from.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DeckFormatall()booleanstatic Map<String,DeckFormat> formats()static DeckFormatgetName()String[]static DeckFormatgetSmallestSupersetFormat(List<GameDeck> deckPair) static DeckFormatgetSmallestSupersetFormat(Set<String> requiredSets) static DeckFormatgetSmallestSupersetFormat(GameDeck... decks) inthashCode()booleanisInFormat(String set) booleanisInFormat(Card card) static Stringstatic voidpopulateAll(List<String> sets) static voidpopulateFormats(CardList formatCards) voidsetSecondPlayerBonusCards(String[] secondPlayerBonusCards) setValidDeckCondition(ConditionDesc validDeckCondition) static DeckFormatThe currentSpellsourceformat containing all Spellsource sets.withCardSets(Iterable<String> cardSets) withCardSets(String... cardSets)
-
Field Details
-
FORMAT_NAME_ALL
- See Also:
-
-
Constructor Details
-
DeckFormat
public DeckFormat()
-
-
Method Details
-
populateAll
-
populateFormats
-
getFormat
-
formats
-
getSmallestSupersetFormat
-
getSmallestSupersetFormat
-
getSmallestSupersetFormat
-
spellsource
The currentSpellsourceformat containing all Spellsource sets.- Returns:
- A format, or
nullif either Spellsource cards are not on your classpath orCardCatalogue.loadCardsFromPackage()has not been called. OSGi-friendly.
-
all
-
addSet
-
isInFormat
-
isInFormat
-
getCardSets
-
getName
-
setName
-
withName
-
withCardSets
-
withCardSets
-
latestHearthstoneExpansion
-
equals
-
hashCode
public int hashCode() -
getSecondPlayerBonusCards
-
setSecondPlayerBonusCards
-
getValidDeckCondition
-
setValidDeckCondition
-