Tournaments status is updated now and if tournament finished, it's moved to the lower finished matches view.

This commit is contained in:
LevelX2 2013-03-27 22:31:15 +01:00
parent 095c3c5776
commit 402f7fffd9
12 changed files with 89 additions and 24 deletions

View file

@ -112,6 +112,10 @@ public class Table implements Serializable {
state = TableState.DUELING;
}
public void endTournament() {
state = TableState.FINISHED;
}
public void initDraft() {
state = TableState.DRAFTING;
}

View file

@ -278,6 +278,10 @@ public abstract class TournamentImpl implements Tournament {
tableEventSource.fireTableEvent(EventType.START_MATCH, pair, options.getMatchOptions());
}
public void end() {
tableEventSource.fireTableEvent(EventType.END);
}
protected abstract void runTournament();
}