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

Method findById

forge-game/src/main/java/forge/game/Game.java:733–737  ·  view source on GitHub ↗
(int id)

Source from the content-addressed store, hash-verified

731 }
732
733 public Card findById(int id) {
734 CardIdVisitor visit = new CardIdVisitor(id);
735 this.forEachCardInGame(visit);
736 return visit.getFound();
737 }
738
739 public void forEachCardInGame(Visitor<Card> visitor) {
740 forEachCardInGame(visitor, false);

Callers 4

assignGameStateMethod · 0.80
copyGameStateMethod · 0.80
findByMethod · 0.80

Calls 2

forEachCardInGameMethod · 0.95
getFoundMethod · 0.95

Tested by 1