Fixed quick start action (for testing).

This commit is contained in:
North 2012-07-03 08:25:50 +03:00
parent 9a5dcbc662
commit 7734abe87f

View file

@ -510,14 +510,14 @@ public class TablesPanel extends javax.swing.JPanel {
try { try {
MatchOptions options = new MatchOptions("1", "Two Player Duel"); MatchOptions options = new MatchOptions("1", "Two Player Duel");
options.getPlayerTypes().add("Human"); options.getPlayerTypes().add("Human");
options.getPlayerTypes().add("Computer - minimax"); options.getPlayerTypes().add("Computer - mad");
options.setDeckType("Limited"); options.setDeckType("Limited");
options.setAttackOption(MultiplayerAttackOption.LEFT); options.setAttackOption(MultiplayerAttackOption.LEFT);
options.setRange(RangeOfInfluence.ALL); options.setRange(RangeOfInfluence.ALL);
options.setWinsNeeded(1); options.setWinsNeeded(1);
table = session.createTable(roomId, options); table = session.createTable(roomId, options);
session.joinTable(roomId, table.getTableId(), "Human", "Human", 1, DeckImporterUtil.importDeck("test.dck")); session.joinTable(roomId, table.getTableId(), "Human", "Human", 1, DeckImporterUtil.importDeck("test.dck"));
session.joinTable(roomId, table.getTableId(), "Computer", "Computer - minimax", 5, DeckImporterUtil.importDeck("test.dck")); session.joinTable(roomId, table.getTableId(), "Computer", "Computer - mad", 5, DeckImporterUtil.importDeck("test.dck"));
session.startGame(roomId, table.getTableId()); session.startGame(roomId, table.getTableId());
} catch (Exception ex) { } catch (Exception ex) {
handleError(ex); handleError(ex);