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

Method getCardsIn

forge-game/src/main/java/forge/game/Game.java:600–605  ·  view source on GitHub ↗
(final ZoneType zone)

Source from the content-addressed store, hash-verified

598 }
599
600 public synchronized CardCollectionView getCardsIn(final ZoneType zone) {
601 if (zone == ZoneType.Stack) {
602 return getStackZone().getCards();
603 }
604 return getPlayers().getCardsIn(zone);
605 }
606
607 public CardCollectionView getCardsIncludePhasingIn(final ZoneType zone) {
608 if (zone == ZoneType.Stack) {

Callers 15

getOptionalCostValuesMethod · 0.95
isCardExiledMethod · 0.95
isCardInPlayMethod · 0.95
isCardInCommandMethod · 0.95
anyWithFlashNeedsInfoMethod · 0.95
anyWithFlashMethod · 0.95
ignoreLegendRuleMethod · 0.95
cantDiscardMethod · 0.95
anyCantBecomeMonarchMethod · 0.95
cantTransformMethod · 0.95
cantRegenerateMethod · 0.95

Calls 4

getStackZoneMethod · 0.95
getPlayersMethod · 0.95
getCardsMethod · 0.45
addAllMethod · 0.45

Tested by 7

countCardsWithNameMethod · 0.36
findCardWithNameMethod · 0.36
gameStateToStringMethod · 0.36
testHenzieMethod · 0.36
castSpellFromHandMethod · 0.36