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

Method isCardInCommand

forge-game/src/main/java/forge/game/Game.java:643–645  ·  view source on GitHub ↗
(final String cardName)

Source from the content-addressed store, hash-verified

641 }
642
643 public boolean isCardInCommand(final String cardName) {
644 return getCardsIn(ZoneType.Command).anyMatch(CardPredicates.nameEquals(cardName));
645 }
646
647 public CardCollectionView getColoredCardsInPlay(final byte color) {
648 final CardCollection cards = new CardCollection();

Callers 3

chooseBestLandToPlayMethod · 0.45
checkApiLogicMethod · 0.45

Calls 3

getCardsInMethod · 0.95
nameEqualsMethod · 0.95
anyMatchMethod · 0.65

Tested by

no test coverage detected