Player player;
player = new QuickPlayer("Quick Player");
if (jCheckBox6.isSelected())
{
GenDeckPanel genPanel = new GenDeckPanel(jComboBoxGenDeck.getSelectedItem().toString());
player.setDeckGenMode(true, "GeneratedDeck", genPanel.genDeck());
}
else
{
player.setSelectedDeckName((String) jComboBoxQuick.getSelectedItem());
}
player1 = new MatchHumanPlayer(player);
String aiName = (String) jComboBoxComputer.getSelectedItem();
NamedAIData namedAIData = mNamedAIDataPool.get(aiName);
AIPlayer cplayer = new AIPlayer(namedAIData.getAIUsed());
cplayer.mNamedAI = namedAIData;
String stratName = namedAIData.getAIStrategieSetting();
AIStrategie st = mAIStrategiePool.get(stratName);
if (st != null)
cplayer.mStrategie = st;
if (jCheckBoxGenDeck.isSelected())
{
GenDeckPanel genPanel = new GenDeckPanel(jComboBoxGenDeck2.getSelectedItem().toString());
cplayer.setDeckGenMode(true, "GeneratedDeck", genPanel.genDeck());
}
else
{
cplayer.setSelectedDeckName((String) jComboBoxDeckComputer.getSelectedItem());
}