mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
cleanUp
This commit is contained in:
parent
b4edc1bda1
commit
129b6d1e82
38 changed files with 33 additions and 2654 deletions
|
|
@ -162,13 +162,10 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
|
||||
private static MageFrame instance;
|
||||
|
||||
// private static Session session;
|
||||
// public static MageClient client;
|
||||
private static Client client;
|
||||
private ServerState serverState;
|
||||
private ConnectDialog connectDialog;
|
||||
private final ErrorDialog errorDialog;
|
||||
// private static CallbackClient callbackClient;
|
||||
private static final Preferences prefs = Preferences.userNodeForPackage(MageFrame.class);
|
||||
private JLabel title;
|
||||
private Rectangle titleRectangle;
|
||||
|
|
@ -185,22 +182,14 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
private static final Map<UUID, DraftPanel> drafts = new HashMap<>();
|
||||
private static final MageUI ui = new MageUI();
|
||||
|
||||
// private static final ScheduledExecutorService pingTaskExecutor = Executors.newSingleThreadScheduledExecutor();
|
||||
private static UpdateMemUsageTask updateMemUsageTask;
|
||||
|
||||
private static long startTime;
|
||||
|
||||
// /**
|
||||
// * @return the session
|
||||
// */
|
||||
// public static Session getSession() {
|
||||
// return session;
|
||||
// }
|
||||
|
||||
public static Client getClient() {
|
||||
return client;
|
||||
}
|
||||
|
||||
|
||||
public static JDesktopPane getDesktop() {
|
||||
return desktopPane;
|
||||
}
|
||||
|
|
@ -230,7 +219,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
*/
|
||||
public MageFrame() {
|
||||
setWindowTitle();
|
||||
|
||||
|
||||
clientId = UUID.randomUUID();
|
||||
EDTExceptionHandler.registerExceptionHandler();
|
||||
addWindowListener(new WindowAdapter() {
|
||||
|
|
@ -263,8 +252,6 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
DialogManager.updateParams(768, 1024, false);
|
||||
this.setExtendedState(JFrame.MAXIMIZED_BOTH);
|
||||
|
||||
// session = new SessionImpl(this);
|
||||
// callbackClient = new CallbackClientImpl(this);
|
||||
connectDialog = new ConnectDialog();
|
||||
desktopPane.add(connectDialog, JLayeredPane.POPUP_LAYER);
|
||||
errorDialog = new ErrorDialog();
|
||||
|
|
@ -272,13 +259,6 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
desktopPane.add(errorDialog, JLayeredPane.POPUP_LAYER);
|
||||
ui.addComponent(MageComponents.DESKTOP_PANE, desktopPane);
|
||||
|
||||
// pingTaskExecutor.scheduleAtFixedRate(new Runnable() {
|
||||
// @Override
|
||||
// public void run() {
|
||||
// session.ping();
|
||||
// }
|
||||
// }, 60, 60, TimeUnit.SECONDS);
|
||||
|
||||
updateMemUsageTask = new UpdateMemUsageTask(jMemUsageLabel);
|
||||
|
||||
try {
|
||||
|
|
@ -621,7 +601,7 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
if (activeFrame != frame) {
|
||||
frame.deactivated();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private static MagePane getTopMost(MagePane exclude) {
|
||||
|
|
@ -824,10 +804,6 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
// public static boolean stopConnecting() {
|
||||
// return session.stopConnecting();
|
||||
// }
|
||||
|
||||
public boolean autoConnect() {
|
||||
boolean autoConnectParamValue = Boolean.parseBoolean(prefs.get("autoConnect", "false"));
|
||||
|
|
@ -1420,14 +1396,6 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
|
||||
@Override
|
||||
public void disconnected(final boolean errorCall) {
|
||||
// if (SwingUtilities.isEventDispatchThread()) { // Returns true if the current thread is an AWT event dispatching thread.
|
||||
// logger.info("DISCONNECTED (Event Dispatch Thread)");
|
||||
// setStatusText("Not connected");
|
||||
// disableButtons();
|
||||
// hideGames();
|
||||
// hideTables();
|
||||
// } else {
|
||||
// logger.info("DISCONNECTED (NO Event Dispatch Thread)");
|
||||
SwingUtilities.invokeLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
|
@ -1439,12 +1407,9 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
if (performConnect()) {
|
||||
enableButtons();
|
||||
}
|
||||
// } else {
|
||||
// client.disconnect();
|
||||
}
|
||||
}
|
||||
});
|
||||
// }
|
||||
}
|
||||
|
||||
public void showMessage(final String title, final String message) {
|
||||
|
|
@ -1465,11 +1430,6 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
});
|
||||
}
|
||||
|
||||
// @Override
|
||||
// public void processCallback(ClientCallback callback) {
|
||||
// callbackClient.processCallback(callback);
|
||||
// }
|
||||
|
||||
@Override
|
||||
public void inform(String title, String message, MessageType type) {
|
||||
if (type == MessageType.ERROR) {
|
||||
|
|
@ -1506,13 +1466,6 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
|
|||
@Override
|
||||
public void clientRegistered(ServerState state) {
|
||||
this.serverState = state;
|
||||
// SwingUtilities.invokeLater(new Runnable() {
|
||||
// @Override
|
||||
// public void run() {
|
||||
// setWindowTitle();
|
||||
// showGames(false);
|
||||
// }
|
||||
// });
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -47,7 +47,6 @@ import mage.client.util.ImageHelper;
|
|||
import mage.client.util.gui.ArrowBuilder;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.EnlargeMode;
|
||||
//import mage.remote.Session;
|
||||
import mage.view.*;
|
||||
|
||||
import javax.swing.*;
|
||||
|
|
@ -69,7 +68,6 @@ import org.mage.network.Client;
|
|||
@SuppressWarnings("serial")
|
||||
public class Card extends MagePermanent implements MouseMotionListener, MouseListener, FocusListener, ComponentListener {
|
||||
|
||||
// protected static Session session = MageFrame.getSession();
|
||||
protected static Client client = MageFrame.getClient();
|
||||
protected static DefaultActionCallback callback = DefaultActionCallback.getInstance();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,30 +1,30 @@
|
|||
/*
|
||||
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are
|
||||
* permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are
|
||||
* permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Cards.java
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@ import mage.client.util.audio.AudioManager;
|
|||
import mage.client.util.gui.countryBox.CountryCellRenderer;
|
||||
import mage.remote.MageRemoteException;
|
||||
import mage.view.ChatMessage;
|
||||
//import mage.remote.Session;
|
||||
import mage.view.ChatMessage.MessageColor;
|
||||
import mage.view.ChatMessage.MessageType;
|
||||
import mage.view.RoomUsersView;
|
||||
|
|
@ -388,7 +387,6 @@ public class ChatPanel extends javax.swing.JPanel {
|
|||
private UsersView[] players = new UsersView[0];
|
||||
|
||||
public void loadData(RoomUsersView roomUserInfo) throws MageRemoteException {
|
||||
// RoomUsersView roomUserInfo = roomUserInfoList.iterator().next();
|
||||
this.players = roomUserInfo.getUsersView().toArray(new UsersView[0]);
|
||||
JTableHeader th = jTablePlayers.getTableHeader();
|
||||
TableColumnModel tcm = th.getColumnModel();
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ package mage.client.components.ability;
|
|||
import mage.client.util.ImageHelper;
|
||||
import mage.client.util.SettingsManager;
|
||||
import mage.client.util.gui.GuiDisplayUtil;
|
||||
//import mage.remote.Session;
|
||||
import mage.view.AbilityPickerView;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.jdesktop.layout.GroupLayout;
|
||||
|
|
|
|||
|
|
@ -70,7 +70,6 @@ import mage.client.util.Listener;
|
|||
import mage.client.util.audio.AudioManager;
|
||||
import mage.components.CardInfoPane;
|
||||
import mage.game.GameException;
|
||||
//import mage.remote.Session;
|
||||
import mage.view.CardView;
|
||||
import mage.view.SimpleCardView;
|
||||
import org.apache.log4j.Logger;
|
||||
|
|
|
|||
|
|
@ -404,7 +404,6 @@ public class ConnectDialog extends MageDialog {
|
|||
logger.fatal("Connection timeout: ", ex);
|
||||
lblStatus.setText("Could not connect");
|
||||
} finally {
|
||||
// MageFrame.stopConnecting();
|
||||
btnConnect.setEnabled(true);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -31,7 +31,6 @@ import java.util.UUID;
|
|||
import javax.swing.JOptionPane;
|
||||
import mage.cards.decks.importer.DeckImporterUtil;
|
||||
import mage.client.MageFrame;
|
||||
//import mage.remote.Session;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.mage.network.Client;
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ import mage.constants.MultiplayerAttackOption;
|
|||
import mage.constants.RangeOfInfluence;
|
||||
import mage.constants.SkillLevel;
|
||||
import mage.game.match.MatchOptions;
|
||||
//import mage.remote.Session;
|
||||
import mage.view.GameTypeView;
|
||||
import mage.view.TableView;
|
||||
import org.apache.log4j.Logger;
|
||||
|
|
|
|||
|
|
@ -60,7 +60,6 @@ import mage.game.draft.DraftOptions;
|
|||
import mage.game.draft.DraftOptions.TimingOption;
|
||||
import mage.game.tournament.LimitedOptions;
|
||||
import mage.game.tournament.TournamentOptions;
|
||||
//import mage.remote.Session;
|
||||
import mage.view.GameTypeView;
|
||||
import mage.view.TableView;
|
||||
import mage.view.TournamentTypeView;
|
||||
|
|
|
|||
|
|
@ -143,7 +143,6 @@ public class TableWaitingDialog extends MageDialog {
|
|||
this.btnMoveDown.setVisible(false);
|
||||
this.btnMoveUp.setVisible(false);
|
||||
}
|
||||
// UUID chatId = client.getTableChatId(tableId);
|
||||
if (chatId != null) {
|
||||
this.chatPanel.connect(chatId);
|
||||
updateTask.execute();
|
||||
|
|
|
|||
|
|
@ -37,7 +37,6 @@ package mage.client.dialog;
|
|||
|
||||
import mage.client.MageFrame;
|
||||
import mage.constants.PlayerAction;
|
||||
//import mage.remote.Session;
|
||||
import mage.view.UserRequestMessage;
|
||||
import org.mage.network.Client;
|
||||
|
||||
|
|
|
|||
|
|
@ -30,7 +30,6 @@ package mage.client.game;
|
|||
|
||||
import mage.client.MageFrame;
|
||||
import mage.client.util.gui.GuiDisplayUtil;
|
||||
//import mage.remote.Session;
|
||||
import mage.view.AbilityPickerView;
|
||||
|
||||
import javax.swing.*;
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@ import mage.client.util.audio.AudioManager;
|
|||
import mage.client.util.gui.ArrowBuilder;
|
||||
import mage.constants.Constants;
|
||||
import mage.constants.PlayerAction;
|
||||
//import mage.remote.Session;
|
||||
import org.apache.log4j.Logger;
|
||||
import org.mage.network.Client;
|
||||
|
||||
|
|
@ -89,13 +88,6 @@ public class FeedbackPanel extends javax.swing.JPanel {
|
|||
}
|
||||
|
||||
public void getFeedback(FeedbackMode mode, String message, boolean special, Map<String, Serializable> options) {
|
||||
// synchronized (this) {
|
||||
// if (messageId < this.lastMessageId) {
|
||||
// logger.warn("ignoring message from later source: " + messageId + ", text=" + message);
|
||||
// return;
|
||||
// }
|
||||
// this.lastMessageId = messageId;
|
||||
// }
|
||||
|
||||
this.lblMessage.setText(message);
|
||||
this.helper.setMessage(message);
|
||||
|
|
|
|||
|
|
@ -70,7 +70,6 @@ import mage.client.util.gui.BufferedImageBuilder;
|
|||
import mage.client.util.gui.countryBox.CountryUtil;
|
||||
import mage.components.ImagePanel;
|
||||
import mage.constants.ManaType;
|
||||
//import mage.remote.Session;
|
||||
import mage.utils.timer.PriorityTimer;
|
||||
import mage.view.ManaPoolView;
|
||||
import mage.view.PlayerView;
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@ import mage.client.util.gui.ArrowUtil;
|
|||
import mage.client.util.gui.GuiDisplayUtil;
|
||||
import mage.components.CardInfoPane;
|
||||
import mage.constants.EnlargeMode;
|
||||
//import mage.remote.Session;
|
||||
import mage.utils.ThreadUtils;
|
||||
import mage.view.CardView;
|
||||
import mage.view.PermanentView;
|
||||
|
|
|
|||
|
|
@ -1,495 +0,0 @@
|
|||
/*
|
||||
* Copyright 2010 BetaSteward_at_googlemail.com. All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification, are
|
||||
* permitted provided that the following conditions are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
||||
* conditions and the following disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
||||
* of conditions and the following disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY BetaSteward_at_googlemail.com ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
||||
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
||||
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL BetaSteward_at_googlemail.com OR
|
||||
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
||||
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
||||
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* The views and conclusions contained in the software and documentation are those of the
|
||||
* authors and should not be interpreted as representing official policies, either expressed
|
||||
* or implied, of BetaSteward_at_googlemail.com.
|
||||
*/
|
||||
//package mage.client.remote;
|
||||
//
|
||||
//import java.util.List;
|
||||
//import java.util.UUID;
|
||||
//import javax.swing.JOptionPane;
|
||||
//import javax.swing.SwingUtilities;
|
||||
//import mage.client.MageFrame;
|
||||
//import mage.client.draft.DraftPanel;
|
||||
//import mage.client.game.GamePanel;
|
||||
//import mage.client.util.audio.AudioManager;
|
||||
//import mage.client.util.object.SaveObjectUtil;
|
||||
//import mage.interfaces.callback.CallbackClient;
|
||||
//import mage.interfaces.callback.ClientCallback;
|
||||
//import mage.utils.CompressUtil;
|
||||
//import mage.view.ChatMessage;
|
||||
//import mage.view.DraftClientMessage;
|
||||
//import mage.view.DraftView;
|
||||
//import mage.view.GameView;
|
||||
//import mage.view.TableClientMessage;
|
||||
//import mage.view.UserRequestMessage;
|
||||
//import org.apache.log4j.Logger;
|
||||
//
|
||||
///**
|
||||
// *
|
||||
// * @author BetaSteward_at_googlemail.com
|
||||
// */
|
||||
//public class CallbackClientImpl implements CallbackClient {
|
||||
//
|
||||
// private static final Logger logger = Logger.getLogger(CallbackClientImpl.class);
|
||||
// private final MageFrame frame;
|
||||
// private int messageId = 0;
|
||||
// private int gameInformMessageId = 0;
|
||||
//
|
||||
// public CallbackClientImpl(MageFrame frame) {
|
||||
// this.frame = frame;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// public synchronized void processCallback(final ClientCallback callback) {
|
||||
// SaveObjectUtil.saveObject(callback.getData(), callback.getMethod());
|
||||
// callback.setData(CompressUtil.decompress(callback.getData()));
|
||||
// SwingUtilities.invokeLater(new Runnable() {
|
||||
// @Override
|
||||
// public void run() {
|
||||
// try {
|
||||
// logger.debug(callback.getMessageId() + " -- " + callback.getMethod());
|
||||
// switch (callback.getMethod()) {
|
||||
// case "startGame":
|
||||
// {
|
||||
// TableClientMessage message = (TableClientMessage) callback.getData();
|
||||
// GameManager.getInstance().setCurrentPlayerUUID(message.getPlayerId());
|
||||
// gameStarted(message.getGameId(), message.getPlayerId());
|
||||
// break;
|
||||
// }
|
||||
// case "startTournament":
|
||||
// {
|
||||
// TableClientMessage message = (TableClientMessage) callback.getData();
|
||||
// tournamentStarted(message.getGameId(), message.getPlayerId());
|
||||
// break;
|
||||
// }
|
||||
// case "startDraft":
|
||||
// {
|
||||
// TableClientMessage message = (TableClientMessage) callback.getData();
|
||||
// draftStarted(message.getGameId(), message.getPlayerId());
|
||||
// break;
|
||||
// }
|
||||
// case "replayGame":
|
||||
// replayGame(callback.getObjectId());
|
||||
// break;
|
||||
// case "showTournament":
|
||||
// showTournament(callback.getObjectId());
|
||||
// break;
|
||||
// case "watchGame":
|
||||
// watchGame(callback.getObjectId());
|
||||
// break;
|
||||
// case "chatMessage":
|
||||
// {
|
||||
// ChatMessage message = (ChatMessage) callback.getData();
|
||||
// ChatPanel panel = MageFrame.getChat(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// // play the to the message connected sound
|
||||
// if (message.getSoundToPlay() != null) {
|
||||
// switch (message.getSoundToPlay()) {
|
||||
// case PlayerLeft:
|
||||
// AudioManager.playPlayerLeft();
|
||||
// break;
|
||||
// case PlayerQuitTournament:
|
||||
// AudioManager.playPlayerQuitTournament();
|
||||
// break;
|
||||
// case PlayerSubmittedDeck:
|
||||
// AudioManager.playPlayerSubmittedDeck();
|
||||
// break;
|
||||
// case PlayerWhispered:
|
||||
// AudioManager.playPlayerWhispered();
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// // send start message to chat if not done yet
|
||||
// if (!panel.isStartMessageDone()) {
|
||||
// createChatStartMessage(panel);
|
||||
// }
|
||||
// // send the message to subchat if exists and it's not a game message
|
||||
// if (!message.getMessageType().equals(MessageType.GAME) && panel.getConnectedChat() != null) {
|
||||
// panel.getConnectedChat().receiveMessage(message.getUsername(), message.getMessage(), message.getTime(), message.getMessageType(), ChatMessage.MessageColor.BLACK);
|
||||
// } else {
|
||||
// panel.receiveMessage(message.getUsername(), message.getMessage(), message.getTime(), message.getMessageType(), message.getColor());
|
||||
// }
|
||||
//
|
||||
// } break;
|
||||
// }
|
||||
// case "serverMessage":
|
||||
// if (callback.getData() != null) {
|
||||
// ChatMessage message = (ChatMessage) callback.getData();
|
||||
// if (message.getColor().equals(ChatMessage.MessageColor.RED)) {
|
||||
// JOptionPane.showMessageDialog(null, message.getMessage(), "Server message", JOptionPane.WARNING_MESSAGE);
|
||||
// } else {
|
||||
// JOptionPane.showMessageDialog(null, message.getMessage(), "Server message", JOptionPane.INFORMATION_MESSAGE);
|
||||
// }
|
||||
// } break;
|
||||
// case "joinedTable":
|
||||
// {
|
||||
// TableClientMessage message = (TableClientMessage) callback.getData();
|
||||
// joinedTable(message.getRoomId(), message.getTableId(), message.getFlag());
|
||||
// break;
|
||||
// }
|
||||
// case "replayInit":
|
||||
// {
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.init((GameView) callback.getData());
|
||||
// } break;
|
||||
// }
|
||||
// case "replayDone":
|
||||
// {
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.endMessage((String) callback.getData());
|
||||
// } break;
|
||||
// }
|
||||
// case "replayUpdate":
|
||||
// {
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.updateGame((GameView) callback.getData());
|
||||
// } break;
|
||||
// }
|
||||
// case "gameInit":
|
||||
// {
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.init((GameView) callback.getData());
|
||||
// } break;
|
||||
// }
|
||||
// case "gameOver":
|
||||
// {
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.endMessage((String) callback.getData());
|
||||
// } break;
|
||||
// }
|
||||
// case "gameError":
|
||||
// frame.showErrorDialog("Game Error", (String) callback.getData());
|
||||
// break;
|
||||
// case "gameAsk":
|
||||
// {
|
||||
// GameClientMessage message = (GameClientMessage) callback.getData();
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.ask(message.getMessage(), message.getGameView(), callback.getMessageId());
|
||||
// } break;
|
||||
// }
|
||||
// case "gameTarget": // e.g. Pick triggered ability
|
||||
// {
|
||||
// GameClientMessage message = (GameClientMessage) callback.getData();
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.pickTarget(message.getMessage(), message.getCardsView(), message.getGameView(),
|
||||
// message.getTargets(), message.isFlag(), message.getOptions(), callback.getMessageId());
|
||||
// } break;
|
||||
// }
|
||||
// case "gameSelect":
|
||||
// {
|
||||
// GameClientMessage message = (GameClientMessage) callback.getData();
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.select(message.getMessage(), message.getGameView(), callback.getMessageId(), message.getOptions());
|
||||
// } break;
|
||||
// }
|
||||
// case "gameChooseAbility":
|
||||
// {
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.pickAbility((AbilityPickerView) callback.getData());
|
||||
// } break;
|
||||
// }
|
||||
// case "gameChoosePile":
|
||||
// {
|
||||
// GameClientMessage message = (GameClientMessage) callback.getData();
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.pickPile(message.getMessage(), message.getPile1(), message.getPile2());
|
||||
// } break;
|
||||
// }
|
||||
// case "gameChooseChoice":
|
||||
// {
|
||||
// GameClientMessage message = (GameClientMessage) callback.getData();
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
//
|
||||
// if (panel != null) {
|
||||
// panel.getChoice(message.getChoice(), callback.getObjectId());
|
||||
// }
|
||||
// break;
|
||||
// }
|
||||
// case "gamePlayMana":
|
||||
// {
|
||||
// GameClientMessage message = (GameClientMessage) callback.getData();
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.playMana(message.getMessage(), message.getGameView(), callback.getMessageId());
|
||||
// }
|
||||
// break;
|
||||
// }
|
||||
// case "gamePlayXMana":
|
||||
// {
|
||||
// GameClientMessage message = (GameClientMessage) callback.getData();
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.playXMana(message.getMessage(), message.getGameView(), callback.getMessageId());
|
||||
// }
|
||||
// break;
|
||||
// }
|
||||
// case "gameSelectAmount":
|
||||
// {
|
||||
// GameClientMessage message = (GameClientMessage) callback.getData();
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.getAmount(message.getMin(), message.getMax(), message.getMessage());
|
||||
// } break;
|
||||
// }
|
||||
// case "gameUpdate":
|
||||
// {
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.updateGame((GameView) callback.getData());
|
||||
// } break;
|
||||
// }
|
||||
// case "endGameInfo":
|
||||
// MageFrame.getInstance().showGameEndDialog((GameEndView) callback.getData());
|
||||
// break;
|
||||
// case "showUserMessage":
|
||||
// List<String> messageData = (List<String>) callback.getData();
|
||||
// if (messageData.size() == 2) {
|
||||
// JOptionPane.showMessageDialog(null, messageData.get(1), messageData.get(0), JOptionPane.WARNING_MESSAGE);
|
||||
// } break;
|
||||
// case "gameInform":
|
||||
// if (callback.getMessageId() > gameInformMessageId) {
|
||||
// {
|
||||
// GameClientMessage message = (GameClientMessage) callback.getData();
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.inform(message.getMessage(), message.getGameView());
|
||||
// }
|
||||
// }
|
||||
//// no longer needed because phase skip handling on server side now
|
||||
// } else {
|
||||
// logger.warn(new StringBuilder("message out of sequence - ignoring").append("MessageId = ").append(callback.getMessageId()).append(" method = ").append(callback.getMethod()));
|
||||
// //logger.warn("message out of sequence - ignoring");
|
||||
// }
|
||||
// gameInformMessageId = messageId;
|
||||
// break;
|
||||
// case "gameInformPersonal":
|
||||
// {
|
||||
// GameClientMessage message = (GameClientMessage) callback.getData();
|
||||
// GamePanel panel = MageFrame.getGame(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// JOptionPane.showMessageDialog(panel, message.getMessage(), "Game message",
|
||||
// JOptionPane.INFORMATION_MESSAGE);
|
||||
// } break;
|
||||
// }
|
||||
// case "sideboard":
|
||||
// {
|
||||
// TableClientMessage message = (TableClientMessage) callback.getData();
|
||||
// DeckView deckView = message.getDeck();
|
||||
// Deck deck = DeckUtil.construct(deckView);
|
||||
// if (message.getFlag()) {
|
||||
// construct(deck, message.getTableId(), message.getTime());
|
||||
// } else {
|
||||
// sideboard(deck, message.getTableId(), message.getTime());
|
||||
// } break;
|
||||
// }
|
||||
// case "construct":
|
||||
// {
|
||||
// TableClientMessage message = (TableClientMessage) callback.getData();
|
||||
// DeckView deckView = message.getDeck();
|
||||
// Deck deck = DeckUtil.construct(deckView);
|
||||
// construct(deck, message.getTableId(), message.getTime());
|
||||
// break;
|
||||
// }
|
||||
// case "draftOver":
|
||||
// MageFrame.removeDraft(callback.getObjectId());
|
||||
// break;
|
||||
// case "draftPick":
|
||||
// {
|
||||
// DraftClientMessage message = (DraftClientMessage) callback.getData();
|
||||
// DraftPanel panel = MageFrame.getDraft(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.loadBooster(message.getDraftPickView());
|
||||
// }
|
||||
// break;
|
||||
// }
|
||||
// case "draftUpdate":
|
||||
// {
|
||||
// DraftPanel panel = MageFrame.getDraft(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.updateDraft((DraftView) callback.getData());
|
||||
// }
|
||||
// break;
|
||||
// }
|
||||
// case "draftInform":
|
||||
// if (callback.getMessageId() > messageId) {
|
||||
// {
|
||||
// DraftClientMessage message = (DraftClientMessage) callback.getData();
|
||||
// }
|
||||
// } else {
|
||||
// logger.warn("message out of sequence - ignoring");
|
||||
// }
|
||||
// break;
|
||||
// case "draftInit":
|
||||
// {
|
||||
// DraftClientMessage message = (DraftClientMessage) callback.getData();
|
||||
// DraftPanel panel = MageFrame.getDraft(callback.getObjectId());
|
||||
// if (panel != null) {
|
||||
// panel.loadBooster(message.getDraftPickView());
|
||||
// }
|
||||
// break;
|
||||
// }
|
||||
// case "tournamentInit":
|
||||
// break;
|
||||
// case "userRequestDialog":
|
||||
// frame.showUserRequestDialog((UserRequestMessage) callback.getData());
|
||||
// break;
|
||||
// }
|
||||
// messageId = callback.getMessageId();
|
||||
// } catch (Exception ex) {
|
||||
// handleException(ex);
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
//
|
||||
// private void createChatStartMessage(ChatPanel chatPanel) {
|
||||
// chatPanel.setStartMessageDone(true);
|
||||
// ChatPanel usedPanel = chatPanel;
|
||||
// if (chatPanel.getConnectedChat() != null) {
|
||||
// usedPanel = chatPanel.getConnectedChat();
|
||||
// }
|
||||
// switch (usedPanel.getChatType()) {
|
||||
// case GAME:
|
||||
// usedPanel.receiveMessage("", new StringBuilder("You may use hot keys to play faster:")
|
||||
// .append("<br/>Turn mousewheel up (ALT-e) - enlarge image of card the mousepointer hovers over")
|
||||
// .append("<br/>Turn mousewheel down (ALT-s) - enlarge original/alternate image of card the mousepointer hovers over")
|
||||
// .append("<br/><b>F2</b> - Confirm \"Ok\", \"Yes\" or \"Done\" button")
|
||||
// .append("<br/><b>F4</b> - Skip current turn but stop on declare attackers/blockers and something on the stack")
|
||||
// .append("<br/><b>F5</b> - Skip to next end step but stop on declare attackers/blockers and something on the stack")
|
||||
// .append("<br/><b>F7</b> - Skip to next main phase but stop on declare attackers/blockers and something on the stack")
|
||||
// .append("<br/><b>F9</b> - Skip everything until your next turn")
|
||||
// .append("<br/><b>F3</b> - Undo F4/F5/F7/F9").toString(),
|
||||
// null, MessageType.USER_INFO, ChatMessage.MessageColor.BLUE);
|
||||
// break;
|
||||
// case TOURNAMENT:
|
||||
// usedPanel.receiveMessage("", new StringBuilder("On this panel you can see the players, their state and the results of the games of the tournament. Also you can chat with the competitors of the tournament.").toString(),
|
||||
// null, MessageType.USER_INFO, ChatMessage.MessageColor.BLUE);
|
||||
// break;
|
||||
// case TABLES:
|
||||
// usedPanel.receiveMessage("", new StringBuilder("Download card images by using the \"Images\" menu to the top right .")
|
||||
// .append("<br/>Download icons and symbols by using the \"Symbols\" menu to the top right.")
|
||||
// .append("<br/>\\list - Show a list of available chat commands.").toString(),
|
||||
// null, MessageType.USER_INFO, ChatMessage.MessageColor.BLUE);
|
||||
// break;
|
||||
//
|
||||
// }
|
||||
// }
|
||||
|
||||
// private void joinedTable(UUID roomId, UUID tableId, boolean isTournament) {
|
||||
// try {
|
||||
// frame.showTableWaitingDialog(roomId, tableId, isTournament);
|
||||
// } catch (Exception ex) {
|
||||
// handleException(ex);
|
||||
// }
|
||||
// }
|
||||
|
||||
// protected void gameStarted(final UUID gameId, final UUID playerId) {
|
||||
// try {
|
||||
// frame.showGame(gameId, playerId);
|
||||
// logger.info("Game " + gameId + " started for player " + playerId);
|
||||
// } catch (Exception ex) {
|
||||
// handleException(ex);
|
||||
// }
|
||||
//
|
||||
// if (Plugins.getInstance().isCounterPluginLoaded()) {
|
||||
// Plugins.getInstance().addGamesPlayed();
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// protected void draftStarted(UUID draftId, UUID playerId) {
|
||||
// try {
|
||||
// frame.showDraft(draftId);
|
||||
// logger.info("Draft " + draftId + " started for player " + playerId);
|
||||
// } catch (Exception ex) {
|
||||
// handleException(ex);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// protected void tournamentStarted(UUID tournamentId, UUID playerId) {
|
||||
// try {
|
||||
// frame.showTournament(tournamentId);
|
||||
// AudioManager.playTournamentStarted();
|
||||
// logger.info("Tournament " + tournamentId + " started for player " + playerId);
|
||||
// } catch (Exception ex) {
|
||||
// handleException(ex);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// /**
|
||||
// * Shows the tournament info panel for a tournament
|
||||
// *
|
||||
// * @param tournamentId
|
||||
// */
|
||||
// protected void showTournament(UUID tournamentId) {
|
||||
// try {
|
||||
// frame.showTournament(tournamentId);
|
||||
// logger.info("Showing tournament " + tournamentId);
|
||||
// } catch (Exception ex) {
|
||||
// handleException(ex);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// protected void watchGame(UUID gameId) {
|
||||
// try {
|
||||
// frame.watchGame(gameId);
|
||||
// logger.info("Watching game " + gameId);
|
||||
// } catch (Exception ex) {
|
||||
// handleException(ex);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// protected void replayGame(UUID gameId) {
|
||||
// try {
|
||||
// frame.replayGame(gameId);
|
||||
// logger.info("Replaying game");
|
||||
// } catch (Exception ex) {
|
||||
// handleException(ex);
|
||||
// }
|
||||
// }
|
||||
//
|
||||
// protected void sideboard(Deck deck, UUID tableId, int time) {
|
||||
// frame.showDeckEditor(DeckEditorMode.SIDEBOARDING, deck, tableId, time);
|
||||
// }
|
||||
//
|
||||
// protected void construct(Deck deck, UUID tableId, int time) {
|
||||
// frame.showDeckEditor(DeckEditorMode.LIMITED_BUILDING, deck, tableId, time);
|
||||
// }
|
||||
|
||||
// private void handleException(Exception ex) {
|
||||
// logger.fatal("Client error\n", ex);
|
||||
// frame.showError("Error: " + ex.getMessage());
|
||||
// }
|
||||
//}
|
||||
|
|
@ -44,7 +44,6 @@ import mage.client.util.Config;
|
|||
import mage.client.util.Event;
|
||||
import mage.client.util.Listener;
|
||||
import org.mage.network.Client;
|
||||
//import mage.remote.Session;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
|
|||
|
|
@ -88,7 +88,6 @@ import mage.constants.RangeOfInfluence;
|
|||
import mage.constants.SkillLevel;
|
||||
import mage.game.match.MatchOptions;
|
||||
import mage.remote.MageRemoteException;
|
||||
//import mage.remote.Session;
|
||||
import mage.view.MatchView;
|
||||
import mage.view.RoomUsersView;
|
||||
import mage.view.RoomView;
|
||||
|
|
@ -108,8 +107,6 @@ public class TablesPanel extends javax.swing.JPanel {
|
|||
private MatchesTableModel matchesModel;
|
||||
private UUID roomId;
|
||||
private UpdateRoomTask updateRoomTask;
|
||||
// private UpdatePlayersTask updatePlayersTask;
|
||||
// private UpdateMatchesTask updateMatchesTask;
|
||||
private JoinTableDialog joinTableDialog;
|
||||
private NewTableDialog newTableDialog;
|
||||
private NewTournamentDialog newTournamentDialog;
|
||||
|
|
@ -377,21 +374,6 @@ public class TablesPanel extends javax.swing.JPanel {
|
|||
updateRoomTask = new UpdateRoomTask(client, roomId, this, this.chatPanel);
|
||||
updateRoomTask.execute();
|
||||
}
|
||||
// if (updatePlayersTask == null || updatePlayersTask.isDone()) {
|
||||
// updatePlayersTask = new UpdatePlayersTask(client, roomId, this.chatPanel);
|
||||
// updatePlayersTask.execute();
|
||||
// }
|
||||
// if (this.btnStateFinished.isSelected()) {
|
||||
// if (updateMatchesTask == null || updateMatchesTask.isDone()) {
|
||||
// updateMatchesTask = new UpdateMatchesTask(client, roomId, this);
|
||||
// updateMatchesTask.execute();
|
||||
// }
|
||||
// }
|
||||
// else {
|
||||
// if (updateMatchesTask != null) {
|
||||
// updateMatchesTask.cancel(true);
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -399,12 +381,6 @@ public class TablesPanel extends javax.swing.JPanel {
|
|||
if (updateRoomTask != null) {
|
||||
updateRoomTask.cancel(true);
|
||||
}
|
||||
// if (updatePlayersTask != null) {
|
||||
// updatePlayersTask.cancel(true);
|
||||
// }
|
||||
// if (updateMatchesTask != null) {
|
||||
// updateMatchesTask.cancel(true);
|
||||
// }
|
||||
}
|
||||
|
||||
public void showTables(UUID roomId) {
|
||||
|
|
@ -1416,45 +1392,6 @@ class UpdateRoomTask extends SwingWorker<Void, RoomView> {
|
|||
|
||||
}
|
||||
|
||||
//class UpdatePlayersTask extends SwingWorker<Void, Collection<RoomUsersView>> {
|
||||
//
|
||||
// private final Client client;
|
||||
// private final UUID roomId;
|
||||
// private final ChatPanel chat;
|
||||
//
|
||||
// private static final Logger logger = Logger.getLogger(UpdatePlayersTask.class);
|
||||
//
|
||||
// UpdatePlayersTask(Client client, UUID roomId, ChatPanel chat) {
|
||||
// this.client = client;
|
||||
// this.roomId = roomId;
|
||||
// this.chat = chat;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// protected Void doInBackground() throws Exception {
|
||||
// while (!isCancelled()) {
|
||||
// this.publish(client.getRoomUsers(roomId));
|
||||
// Thread.sleep(3000);
|
||||
// }
|
||||
// return null;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// protected void process(List<Collection<RoomUsersView>> roomUserInfo) {
|
||||
// chat.setRoomUserInfo(roomUserInfo);
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// protected void done() {
|
||||
// try {
|
||||
// get();
|
||||
// } catch (InterruptedException | ExecutionException ex) {
|
||||
// logger.fatal("Update Players Task error", ex);
|
||||
// } catch (CancellationException ex) {}
|
||||
// }
|
||||
//
|
||||
//}
|
||||
|
||||
class MatchesTableModel extends AbstractTableModel {
|
||||
|
||||
public static final int ACTION_COLUMN = 6; // column the action is located (starting with 0)
|
||||
|
|
@ -1556,48 +1493,6 @@ class MatchesTableModel extends AbstractTableModel {
|
|||
|
||||
}
|
||||
|
||||
//class UpdateMatchesTask extends SwingWorker<Void, Collection<MatchView>> {
|
||||
//
|
||||
// private final Client client;
|
||||
// private final UUID roomId;
|
||||
// private final TablesPanel panel;
|
||||
//
|
||||
// private static final Logger logger = Logger.getLogger(UpdateTablesTask.class);
|
||||
//
|
||||
// UpdateMatchesTask(Client client, UUID roomId, TablesPanel panel) {
|
||||
// this.client = client;
|
||||
// this.roomId = roomId;
|
||||
// this.panel = panel;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// protected Void doInBackground() throws Exception {
|
||||
// while (!isCancelled()) {
|
||||
// Collection<MatchView> matches = client.getFinishedMatches(roomId);
|
||||
// if (matches != null) {
|
||||
// this.publish(matches);
|
||||
// }
|
||||
// Thread.sleep(10000);
|
||||
// }
|
||||
// return null;
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// protected void process(List<Collection<MatchView>> view) {
|
||||
// panel.updateMatches(view.get(0));
|
||||
// }
|
||||
//
|
||||
// @Override
|
||||
// protected void done() {
|
||||
// try {
|
||||
// get();
|
||||
// } catch (InterruptedException | ExecutionException ex) {
|
||||
// logger.fatal("Update Matches Task error", ex);
|
||||
// } catch (CancellationException ex) {}
|
||||
// }
|
||||
//
|
||||
//}
|
||||
|
||||
class GameChooser extends JPopupMenu {
|
||||
|
||||
private Client client;
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ import mage.cards.decks.DeckCardLists;
|
|||
import mage.cards.decks.importer.DeckImporterUtil;
|
||||
import mage.client.MageFrame;
|
||||
import org.mage.network.Client;
|
||||
//import mage.remote.Session;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
|
|||
|
|
@ -41,7 +41,6 @@ import mage.client.MageFrame;
|
|||
import mage.client.cards.BigCard;
|
||||
import mage.client.dialog.ShowCardsDialog;
|
||||
import mage.client.util.Config;
|
||||
//import mage.remote.Session;
|
||||
import mage.view.PlayerView;
|
||||
import org.mage.network.Client;
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ package mage.client.util;
|
|||
import java.awt.event.MouseEvent;
|
||||
import java.util.UUID;
|
||||
|
||||
//import mage.remote.Session;
|
||||
import mage.view.CardView;
|
||||
import org.mage.network.Client;
|
||||
|
||||
|
|
|
|||
|
|
@ -97,11 +97,6 @@ public class MultiConnectTest {
|
|||
logger.info("showError: " + message);
|
||||
}
|
||||
|
||||
// @Override
|
||||
// public void processCallback(ClientCallback callback) {
|
||||
// logger.info("processCallback");
|
||||
// }
|
||||
|
||||
@Override
|
||||
public void inform(String title, String message, MessageType type) {
|
||||
if (type == MessageType.ERROR) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue