mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 12:52:06 -08:00
Tournaments status is updated now and if tournament finished, it's moved to the lower finished matches view.
This commit is contained in:
parent
095c3c5776
commit
402f7fffd9
12 changed files with 89 additions and 24 deletions
|
|
@ -112,6 +112,10 @@ public class Table implements Serializable {
|
|||
state = TableState.DUELING;
|
||||
}
|
||||
|
||||
public void endTournament() {
|
||||
state = TableState.FINISHED;
|
||||
}
|
||||
|
||||
public void initDraft() {
|
||||
state = TableState.DRAFTING;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue