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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeckFormat
all()
boolean
static Map<String,
DeckFormat> formats()
static DeckFormat
getName()
String[]
static DeckFormat
getSmallestSupersetFormat
(List<GameDeck> deckPair) static DeckFormat
getSmallestSupersetFormat
(Set<String> requiredSets) static DeckFormat
getSmallestSupersetFormat
(GameDeck... decks) int
hashCode()
boolean
isInFormat
(String set) boolean
isInFormat
(Card card) static String
static void
populateAll
(List<String> sets) static void
populateFormats
(CardList formatCards) void
setSecondPlayerBonusCards
(String[] secondPlayerBonusCards) setValidDeckCondition
(ConditionDesc validDeckCondition) static DeckFormat
The currentSpellsource
format 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 currentSpellsource
format containing all Spellsource sets.- Returns:
- A format, or
null
if 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
-