mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 07:22:03 -08:00
added Sealed tournaments
This commit is contained in:
parent
44aefaf47a
commit
f7ffbb4773
51 changed files with 652 additions and 143 deletions
|
|
@ -43,10 +43,12 @@ public class TableClientMessage implements Serializable {
|
|||
private UUID tableId;
|
||||
private UUID gameId;
|
||||
private UUID playerId;
|
||||
private int time;
|
||||
|
||||
public TableClientMessage(Deck deck, UUID tableId) {
|
||||
public TableClientMessage(Deck deck, UUID tableId, int time) {
|
||||
this.deck = deck;
|
||||
this.tableId = tableId;
|
||||
this.time = time;
|
||||
}
|
||||
|
||||
public TableClientMessage(UUID gameId, UUID playerId) {
|
||||
|
|
@ -69,4 +71,8 @@ public class TableClientMessage implements Serializable {
|
|||
public UUID getPlayerId() {
|
||||
return playerId;
|
||||
}
|
||||
|
||||
public int getTime() {
|
||||
return time;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -43,6 +43,7 @@ public class TournamentTypeView implements Serializable {
|
|||
private int maxPlayers;
|
||||
private int numBoosters;
|
||||
private boolean draft;
|
||||
private boolean limited;
|
||||
|
||||
public TournamentTypeView(TournamentType tournamentType) {
|
||||
this.name = tournamentType.getName();
|
||||
|
|
@ -50,6 +51,7 @@ public class TournamentTypeView implements Serializable {
|
|||
this.maxPlayers = tournamentType.getMaxPlayers();
|
||||
this.numBoosters = tournamentType.getNumBoosters();
|
||||
this.draft = tournamentType.isDraft();
|
||||
this.limited = tournamentType.isLimited();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -76,4 +78,8 @@ public class TournamentTypeView implements Serializable {
|
|||
public boolean isDraft() {
|
||||
return draft;
|
||||
}
|
||||
|
||||
public boolean isLimited() {
|
||||
return limited;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue