From 59933f0842803a4c2f1764b8a27c91d8f850e848 Mon Sep 17 00:00:00 2001 From: benjamin Date: Wed, 24 Feb 2016 22:24:51 -0500 Subject: [PATCH] Added documentation to two new functions in Constructed.java --- Mage/src/main/java/mage/cards/decks/Constructed.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Mage/src/main/java/mage/cards/decks/Constructed.java b/Mage/src/main/java/mage/cards/decks/Constructed.java index 1c68d651c2..85cb94b9af 100644 --- a/Mage/src/main/java/mage/cards/decks/Constructed.java +++ b/Mage/src/main/java/mage/cards/decks/Constructed.java @@ -142,6 +142,11 @@ public class Constructed extends DeckValidator { return valid; } + /** + * Checks if the given card is legal in any of the given rarities + * @param card - the card to check + * @return Whether the card was printed at any of the given rarities. + */ protected boolean legalRarity(Card card){ // check if card is legal if taken from other set boolean legal = false; @@ -158,6 +163,11 @@ public class Constructed extends DeckValidator { return legal; } + /** + * Checks if the given card is legal in any of the given sets + * @param card - the card to check + * @return Whether the card was printed in any of this format's sets. + */ protected boolean legalSets(Card card) { // check if card is legal if taken from other set boolean legal = false;