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

Method getTitle

forge-game/src/main/java/forge/game/Match.java:52–62  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50 return rules;
51 }
52 String getTitle() {
53 final Multiset<RegisteredPlayer> wins = getGamesWon();
54 final StringBuilder titleAppend = new StringBuilder(title);
55 titleAppend.append(" (");
56 for (final RegisteredPlayer rp : players) {
57 titleAppend.append(wins.count(rp)).append('-');
58 }
59 titleAppend.deleteCharAt(titleAppend.length() - 1);
60 titleAppend.append(')');
61 return titleAppend.toString();
62 }
63
64 public void addGamePlayed(Game finished) {
65 if (!finished.isGameOver()) {

Callers

nothing calls this directly

Calls 5

getGamesWonMethod · 0.95
lengthMethod · 0.80
appendMethod · 0.45
countMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected