mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 20:11:59 -08:00
* The list of open tables shows now the codes of boosters selected for sealed or draft tournaments in the deck type column.
This commit is contained in:
parent
ae6139f859
commit
aef53bc4ce
4 changed files with 30 additions and 1 deletions
|
|
@ -50,6 +50,13 @@ public interface Tournament {
|
|||
Collection<TournamentPlayer> getPlayers();
|
||||
Collection<Round> getRounds();
|
||||
List<ExpansionSet> getSets();
|
||||
|
||||
void setSetsFormatedShort(String setInfo);
|
||||
/**
|
||||
* Gives back a String that shows the included sets (e.g. "3xRTR" or "1xDGM 1xGTC 1xRTR")
|
||||
* @return String
|
||||
*/
|
||||
String getSetsFormatedShort();
|
||||
void submitDeck(UUID playerId, Deck deck);
|
||||
void updateDeck(UUID playerId, Deck deck);
|
||||
void autoSubmit(UUID playerId, Deck deck);
|
||||
|
|
|
|||
|
|
@ -53,6 +53,7 @@ public abstract class TournamentImpl implements Tournament {
|
|||
protected String matchName;
|
||||
protected TournamentOptions options;
|
||||
protected List<ExpansionSet> sets = new ArrayList<ExpansionSet>();
|
||||
protected String setsInfoShort;
|
||||
|
||||
protected TableEventSource tableEventSource = new TableEventSource();
|
||||
protected PlayerQueryEventSource playerQueryEventSource = new PlayerQueryEventSource();
|
||||
|
|
@ -100,6 +101,16 @@ public abstract class TournamentImpl implements Tournament {
|
|||
return sets;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setSetsFormatedShort(String setsInfoShort) {
|
||||
this.setsInfoShort = setsInfoShort;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getSetsFormatedShort() {
|
||||
return setsInfoShort;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void leave(UUID playerId) {
|
||||
if (players.containsKey(playerId)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue