forked from External/mage
reconnect to drafts and tournaments
This commit is contained in:
parent
bf2f4e3078
commit
7f312ed453
8 changed files with 132 additions and 42 deletions
|
|
@ -38,6 +38,7 @@ import mage.game.GameException;
|
|||
import mage.game.draft.Draft;
|
||||
import mage.game.match.Match;
|
||||
import mage.game.match.MatchOptions;
|
||||
import mage.game.tournament.Tournament;
|
||||
import mage.game.tournament.TournamentOptions;
|
||||
import mage.MageException;
|
||||
import mage.players.Player;
|
||||
|
|
@ -191,6 +192,11 @@ public class TableManager {
|
|||
controllers.get(tableId).endDraft(draft);
|
||||
}
|
||||
|
||||
public void endTournament(UUID tableId, Tournament tournament) {
|
||||
if (controllers.containsKey(tableId))
|
||||
controllers.get(tableId).endTournament(tournament);
|
||||
}
|
||||
|
||||
public void swapSeats(UUID tableId, UUID userId, int seatNum1, int seatNum2) {
|
||||
if (controllers.containsKey(tableId) && isTableOwner(tableId, userId)) {
|
||||
controllers.get(tableId).swapSeats(seatNum1, seatNum2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue