* 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:
LevelX2 2013-06-10 12:38:38 +02:00
parent ae6139f859
commit aef53bc4ce
4 changed files with 30 additions and 1 deletions

View file

@ -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);

View file

@ -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)) {