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

Method getCardsInGame

forge-game/src/main/java/forge/game/Game.java:775–786  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

773 visitor.visitAll(getStackZone().getCards());
774 }
775 public CardCollectionView getCardsInGame() {
776 final CardCollection all = new CardCollection();
777 Visitor<Card> visitor = new Visitor<Card>() {
778 @Override
779 public boolean visit(Card card) {
780 all.add(card);
781 return true;
782 }
783 };
784 forEachCardInGame(visitor);
785 return all;
786 }
787
788 public final GameAction getAction() {
789 return action;

Callers 15

onPlayerLostMethod · 0.95
onCleanupPhaseMethod · 0.95
getDefinedCardsMethod · 0.95
xCountMethod · 0.95
resolveMethod · 0.95
chooseColorMethod · 0.95
chooseSomeTypeMethod · 0.95
voteMethod · 0.95
makeCopyMethod · 0.95
applyGameOnThreadMethod · 0.80
assignGameStateMethod · 0.80
copyGameStateMethod · 0.80

Calls 1

forEachCardInGameMethod · 0.95

Tested by 2

declareAttackersMethod · 0.64
getCardsToSearchMethod · 0.64