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

Method isCardInPlay

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

Source from the content-addressed store, hash-verified

637 }
638
639 public boolean isCardInPlay(final String cardName) {
640 return getCardsIn(ZoneType.Battlefield).anyMatch(CardPredicates.nameEquals(cardName));
641 }
642
643 public boolean isCardInCommand(final String cardName) {
644 return getCardsIn(ZoneType.Command).anyMatch(CardPredicates.nameEquals(cardName));

Callers 15

canPlayMethod · 0.95
notNeededAsBlockersMethod · 0.45
doAssaultMethod · 0.45
declareAttackersMethod · 0.45
getCardPreferenceMethod · 0.45
activateForCostMethod · 0.45
hasACardGivingHasteMethod · 0.45
aiShouldRunMethod · 0.45
chooseNumberMethod · 0.45
checkApiLogicMethod · 0.45
canLootMethod · 0.45

Calls 3

getCardsInMethod · 0.95
nameEqualsMethod · 0.95
anyMatchMethod · 0.65

Tested by

no test coverage detected