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

Method getGamesWonBy

forge-game/src/main/java/forge/game/Match.java:145–153  ·  view source on GitHub ↗
(LobbyPlayer questPlayer)

Source from the content-addressed store, hash-verified

143 }
144
145 public int getGamesWonBy(LobbyPlayer questPlayer) {
146 int sum = 0;
147 for (GameOutcome go : getOutcomes()) {
148 if (questPlayer.equals(go.getWinningLobbyPlayer())) {
149 sum++;
150 }
151 }
152 return sum;
153 }
154 public Multiset<RegisteredPlayer> getGamesWon() {
155 final Multiset<RegisteredPlayer> won = HashMultiset.create(players.size());
156 for (final GameOutcome go : getOutcomes()) {

Callers 3

isWonByMethod · 0.95
showOutcomeMethod · 0.45
showOutcomeMethod · 0.45

Calls 3

getOutcomesMethod · 0.95
getWinningLobbyPlayerMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected