Support changing preferred art for cards in catalog

Support adding and removing catalog cards from favorites
Only show unique cards in Catalog by default
This commit is contained in:
drdev
2014-07-31 17:55:11 +00:00
parent 3502714bfd
commit d7664e6cfc
7 changed files with 112 additions and 12 deletions

View File

@@ -347,6 +347,11 @@ public final class CardDb implements ICardDatabase {
return roAllCards;
}
@Override
public List<PaperCard> getAllCards(String cardName) {
return allCardsByName.get(cardName);
}
/** Returns a modifiable list of cards matching the given predicate */
@Override
public List<PaperCard> getAllCards(Predicate<PaperCard> predicate) {

View File

@@ -25,6 +25,7 @@ public interface ICardDatabase extends Iterable<PaperCard> {
Collection<PaperCard> getUniqueCards();
List<PaperCard> getAllCards();
List<PaperCard> getAllCards(String cardName);
List<PaperCard> getAllCards(Predicate<PaperCard> predicate);
Predicate<? super PaperCard> wasPrintedInSets(List<String> allowedSetCodes);