Package csa.jportal.gameModes.genDeck

Examples of csa.jportal.gameModes.genDeck.GenDeckPanel


        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());
        }
View Full Code Here


        if (!jCheckBox15.isSelected())
            cplayer.setSelectedDeckName((String) jComboBoxDeckComputerQuest.getSelectedItem());
        else
        {
            if (jComboBoxGenDeck3.getSelectedIndex()==-1) return;
            GenDeckPanel genPanel = new GenDeckPanel(jComboBoxGenDeck3.getSelectedItem().toString());
            cplayer.setDeckGenMode(true, "GeneratedDeck", genPanel.genDeck());
        }
        MatchComputerPlayer computer = new MatchComputerPlayer(cplayer);
        options.setPlayer1(player1);
        options.setPlayer2(computer);
        options.setQuestMode(true);
View Full Code Here

        setMainPanel(p);

    }//GEN-LAST:event_jMenuItem23ActionPerformed

    private void jMenuItemGenDeckActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItemGenDeckActionPerformed
        GenDeckPanel p = new GenDeckPanel();
        addPanel(p);
        setMainPanel(p);
    }//GEN-LAST:event_jMenuItemGenDeckActionPerformed
View Full Code Here

TOP

Related Classes of csa.jportal.gameModes.genDeck.GenDeckPanel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.