forked from External/mage
big client update - moved Session to Mage.Common project, this will allow other clients to reuse connection logic
This commit is contained in:
parent
b9f4f7abf4
commit
8b1c463d35
80 changed files with 417 additions and 610 deletions
|
|
@ -45,8 +45,8 @@ import java.util.UUID;
|
|||
import javax.swing.*;
|
||||
import javax.swing.table.AbstractTableModel;
|
||||
import mage.client.MageFrame;
|
||||
import mage.client.remote.MageRemoteException;
|
||||
import mage.client.remote.Session;
|
||||
import mage.remote.MageRemoteException;
|
||||
import mage.remote.Session;
|
||||
import mage.client.util.ButtonColumn;
|
||||
import mage.view.RoundView;
|
||||
import mage.view.TournamentGameView;
|
||||
|
|
@ -101,7 +101,7 @@ public class TournamentPanel extends javax.swing.JPanel implements Observer {
|
|||
public synchronized void showTournament(UUID tournamentId) {
|
||||
this.tournamentId = tournamentId;
|
||||
session = MageFrame.getSession();
|
||||
session.addTournament(tournamentId, this);
|
||||
MageFrame.addTournament(tournamentId, this);
|
||||
UUID chatRoomId = session.getTournamentChatId(tournamentId);
|
||||
if (session.joinTournament(tournamentId) && chatRoomId != null) {
|
||||
this.chatPanel1.connect(chatRoomId);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue