Package csa.jportal.cardheap

Examples of csa.jportal.cardheap.CardHeap


    boolean hasBlack = false;
    boolean hasRed = false;
   
    CardList buildHeapList()
    {
        CardHeap heap = new CardHeap("AllInHeap", true);
        CardList list = heap.getCardList();
       
        // hard heap reduction
        if (!jCheckBoxPortal.isSelected())
            list = list.removeSet("Portal");
        if (!jCheckBoxII.isSelected())
View Full Code Here


                }
                else if (quest.mQuestOpenType.trim().equals("by card in heap"))
                {
                    String data = quest.mQuestOpenTypeData;
                    String heapName = player.getHeapName();
                    CardHeap heap = new CardHeap(heapName, false);
                    if (heap.getCardList().isInListID(data.trim()))
                    {
                        outQuests.addElement(quest);
                    }
                }
                else if (quest.mQuestOpenType.trim().equals("by set possible"))
View Full Code Here

        {
            Date today = new Date();
            mBoosterBaseName = "tmp"+File.separator+"booster_" + today.getTime()+"_";
        }

        CardHeap heap;
        CardDeck deck;
        if (mPlayer != null)
        {
            heap = new CardHeap(playerHeap.getCards(), mBoosterBaseName+"Human_Heap");
            heap.save();

            if (!pdeckDone)
            {
                pdeckDone = true;
                deck = new CardDeck(playerHeap, mBoosterBaseName+"Human_", "", mBoosterBaseName+"Human_", true);
                deck.save();
                playerDeck = deck.getCardList();
            }
        }

        if (aiDeckCreationDone) return;
        aiDeckCreationDone = true;
        for (int i = 0; i < mPlayers.size(); i++)
        {
            BoosterPlayer p = mPlayers.elementAt(i);
            p.mDeckBase = mBoosterBaseName;


            heap = new CardHeap(p.heap.getCards(), mBoosterBaseName+"AI"+(i+1)+"_Heap");
            heap.save();

            CardList deckList = p.cplayer.buildBoosterDeck(p.heap);
           
            deck = new CardDeck(deckList, mBoosterBaseName+"AI"+(i+1)+"_", "", mBoosterBaseName+"AI"+(i+1)+"_", true);
            deck.save();
View Full Code Here

            }

            if (quest.getTaskType().equals(Q_HAVE_X_IN_HEAP))
            {
                int count = quest.getCount();
                CardList heap = (new CardHeap(getHeapName(), false)).getCardList();
                if (heap.size()>= count)
                    questDone = true;
            }

            if (quest.getTaskType().equals(Q_HAVE_X_RARE))
            {
                int count = quest.getCount();
                CardList heap = (new CardHeap(getHeapName(), false)).getCardList();
                heap = heap.getSubListByRarity("R");
                if (heap.size()>= count)
                    questDone = true;
            }
View Full Code Here

    }//GEN-LAST:event_jTextFieldPageActionPerformed

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
       
        if (mClassSetting>0) return;
        heap = (new CardHeap(mPlayer.getHeapName(), false)).getCardList();

        if (jComboBoxSet.getSelectedIndex() != -1)
        {
            CardSet cset = new CardSet((String)jComboBoxSet.getSelectedItem());
            set = new CardList(cset.getCards());
View Full Code Here

        {
            String string = knownSets.elementAt(i);
            jComboBoxSet.addItem(string);
        }
        jComboBoxSet.setSelectedIndex(-1);
        heap = (new CardHeap(mPlayer.getHeapName(), false)).getCardList();
        mClassSetting--;
    }
View Full Code Here

        jListKnownSets.removeAll();
        jTextFieldCardsInHeap.setText("");
        if (mPlayer.getName().length() != 0)
        {
            CardHeap heap = new CardHeap(mPlayer.getData().getHeapName(), false);
            if (heap != null)
                jTextFieldCardsInHeap.setText(""+heap.size());
            else
                jTextFieldCardsInHeap.setText("");

            Vector<String> knownSets = mPlayer.getData().mKnownSets;
            jListKnownSets.setListData(knownSets);
View Full Code Here

TOP

Related Classes of csa.jportal.cardheap.CardHeap

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.