Merge pull request #6669 from hitch17/jumpstart-tournament-formats

Add jumpstart swiss and elimination tournament formats.
This commit is contained in:
Oleg Agafonov 2020-06-30 06:29:33 +02:00 committed by GitHub
commit d5616a86f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 1518 additions and 5 deletions

View file

@ -22,6 +22,7 @@ public class TournamentTypeView implements Serializable {
private final boolean elimination;
private final boolean random;
private final boolean richMan;
private final boolean jumpstart;
public TournamentTypeView(TournamentType tournamentType) {
this.name = tournamentType.getName();
@ -34,6 +35,7 @@ public class TournamentTypeView implements Serializable {
this.elimination = tournamentType.isElimination();
this.random = tournamentType.isRandom();
this.richMan = tournamentType.isRichMan();
this.jumpstart = tournamentType.isJumpstart();
}
@Override
@ -80,4 +82,9 @@ public class TournamentTypeView implements Serializable {
public boolean isRichMan() {
return richMan;
}
public boolean isJumpstart() {
return jumpstart;
}
}