MCPcopy Create free account
hub / github.com/Card-Forge/forge / getCardArtCount

Method getCardArtCount

forge-core/src/main/java/forge/StaticData.java:705–713  ·  view source on GitHub ↗

Get the Art Count for a given PaperCard looking for a candidate in all available databases. @param card Instance of target PaperCard @return The number of available arts for the given card in the corresponding set, or 0 if not found.

(PaperCard card)

Source from the content-addressed store, hash-verified

703 * @return The number of available arts for the given card in the corresponding set, or 0 if not found.
704 */
705 public int getCardArtCount(PaperCard card) {
706 Collection<CardDb> databases = this.getAvailableDatabases().values();
707 for (CardDb db: databases){
708 int artCount = db.getArtCount(card.getName(), card.getEdition());
709 if (artCount > 0)
710 return artCount;
711 }
712 return 0;
713 }
714
715 public boolean getFilteredHandsEnabled() {
716 return filteredHandsEnabled;

Callers 1

addCardToPoolMethod · 0.95

Calls 5

getAvailableDatabasesMethod · 0.95
valuesMethod · 0.80
getArtCountMethod · 0.65
getNameMethod · 0.65
getEditionMethod · 0.65

Tested by

no test coverage detected