Class DefaultDeckValidator
java.lang.Object
net.demilich.metastone.game.decks.validation.DefaultDeckValidator
- All Implemented Interfaces:
DeckValidator
A deck validator of standard deck rules.
It limits the number of duplicates of legendaries to 1, duplicates of other cards to 2.
It requires exactly GameLogic.DECK_SIZE
cards.
It currently permits cards of any class regardless of the hero class of the given deck.
The multiplayer Spellsource code contains different logic for validating decks.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
DefaultDeckValidator
public DefaultDeckValidator()
-
-
Method Details
-
canAddCardToDeck
- Specified by:
canAddCardToDeck
in interfaceDeckValidator
-