Phase stops - done.

This commit is contained in:
magenoxx 2010-12-12 17:02:24 +03:00
parent 8a454d38a7
commit b26db98817
10 changed files with 706 additions and 85 deletions

View file

@ -42,6 +42,7 @@ import java.util.logging.Logger;
import javax.swing.JOptionPane;
import mage.cards.decks.DeckCardLists;
import mage.client.remote.Session;
import mage.client.util.PhaseManager;
import mage.util.Logging;
/**
@ -136,6 +137,7 @@ public class JoinTableDialog extends MageDialog {
private void btnOKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnOKActionPerformed
Session session = MageFrame.getSession();
try {
PhaseManager.getInstance().setName(this.newPlayerPanel.getPlayerName());
joined = session.joinTable(roomId, tableId, this.newPlayerPanel.getPlayerName(), DeckCardLists.load(this.newPlayerPanel.getDeckFile()));
} catch (Exception ex) {
handleError(ex);