forked from External/mage
deck format change
This commit is contained in:
parent
3cb1c2bf15
commit
ba8532ea86
18 changed files with 127 additions and 51 deletions
|
|
@ -47,6 +47,7 @@ import mage.client.remote.Session;
|
|||
import mage.client.util.Config;
|
||||
import mage.client.util.Event;
|
||||
import mage.client.util.Listener;
|
||||
import mage.sets.Sets;
|
||||
import mage.util.Logging;
|
||||
|
||||
/**
|
||||
|
|
@ -81,7 +82,7 @@ public class TablePlayerPanel extends javax.swing.JPanel {
|
|||
|
||||
public boolean joinTable(UUID roomId, UUID tableId) throws FileNotFoundException, IOException, ClassNotFoundException {
|
||||
if (!this.cbPlayerType.getSelectedItem().equals("Human")) {
|
||||
return session.joinTable(roomId, tableId, this.newPlayerPanel.getPlayerName(), DeckCardLists.load(this.newPlayerPanel.getDeckFile()));
|
||||
return session.joinTable(roomId, tableId, this.newPlayerPanel.getPlayerName(), Sets.loadDeck(this.newPlayerPanel.getDeckFile()));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,6 +63,7 @@ import mage.client.dialog.TableWaitingDialog;
|
|||
import mage.client.remote.MageRemoteException;
|
||||
import mage.client.remote.Session;
|
||||
import mage.client.util.ButtonColumn;
|
||||
import mage.sets.Sets;
|
||||
import mage.util.Logging;
|
||||
import mage.view.TableView;
|
||||
|
||||
|
|
@ -293,13 +294,13 @@ public class TablesPanel extends javax.swing.JPanel implements Observer {
|
|||
roomId,
|
||||
table.getTableId(),
|
||||
"Human",
|
||||
DeckCardLists.load("test.dck")
|
||||
Sets.loadDeck("test.dck")
|
||||
);
|
||||
session.joinTable(
|
||||
roomId,
|
||||
table.getTableId(),
|
||||
"Computer",
|
||||
DeckCardLists.load("test.dck")
|
||||
Sets.loadDeck("test.dck")
|
||||
);
|
||||
hideTables();
|
||||
session.startGame(roomId, table.getTableId());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue