public class GameResult implements ProtocolMessage
Das Endergebnis eines Spiels.
public GameResult(@NotNull ScoreDefinition definition, @NotNull java.util.List<sc.shared.PlayerScore> scores, @Nullable java.util.List<? extends sc.framework.plugins.Player> winners)
Das Endergebnis eines Spiels.
scores
- die Punktzahlen aller Spieler.winners
- eine Liste an Gewinnern, sofern es welche gibt.public boolean isRegular()
@NotNull public java.lang.String toString()
public boolean equals(@Nullable java.lang.Object other)
public int hashCode()
@NotNull public ScoreDefinition getDefinition()
@NotNull public java.util.List<sc.shared.PlayerScore> getScores()
die Punktzahlen aller Spieler.
@Nullable public java.util.List<sc.framework.plugins.Player> getWinners()
eine Liste an Gewinnern,
sofern es welche gibt.
@NotNull public ScoreDefinition component1()
@NotNull public java.util.List<sc.shared.PlayerScore> component2()
die Punktzahlen aller Spieler.
@Nullable public java.util.List<sc.framework.plugins.Player> component3()
eine Liste an Gewinnern,
sofern es welche gibt.
@NotNull public GameResult copy(@NotNull ScoreDefinition definition, @NotNull java.util.List<sc.shared.PlayerScore> scores, @Nullable java.util.List<? extends sc.framework.plugins.Player> winners)
Das Endergebnis eines Spiels.