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

Method hasWon

forge-game/src/main/java/forge/game/player/Player.java:2075–2082  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2073 }
2074
2075 public final boolean hasWon() {
2076 if (cantWin()) {
2077 return false;
2078 }
2079 // in multiplayer game one player's win is replaced by all other's lose (rule 103.4h)
2080 // so if someone cannot lose, the game appears to continue
2081 return getOutcome() != null && getOutcome().lossState == null;
2082 }
2083
2084 public final boolean isInGame() {
2085 return getOutcome() == null;

Callers 15

GameOutcomeMethod · 0.45
calculateLifeDeltaMethod · 0.45
isDrawMethod · 0.45
isWinnerMethod · 0.45
getWinningLobbyPlayerMethod · 0.45
getWinningPlayerMethod · 0.45
PlayerPredicatesClass · 0.45
evalMethod · 0.45
updateAllMethod · 0.45
evaluateMethod · 0.45
evaluateMethod · 0.45

Calls 2

cantWinMethod · 0.95
getOutcomeMethod · 0.95

Tested by

no test coverage detected