Package csa.jportal.cardset

Examples of csa.jportal.cardset.CardSet


        mClassSetting--;
    }
    public void convertAll()
    {
        if (mParent == null) return;
        CardSet cs = mParent.getCardSet();
        if (cs== null) return;

        Vector <Card> cards = cs.getCards();
        for (int i = 0; i < cards.size(); i++) {
            Card card = cards.elementAt(i);
            HintConverter.convertFromOld(card);
        }
        if (mCard==null) return;
View Full Code Here


        jTextFieldShopOffer.setText("");
        mOfferCard = null;
        jComboBoxCard.setSelectedIndex(-1);
        if (jComboBoxPlayerSet.getSelectedIndex() == -1) return;

        CardSet mCardset = new CardSet((String) jComboBoxPlayerSet.getSelectedItem());
        CardList list = new CardList (mCardset.getCards());
        list = list.onlyInHeap(mHeap);


        if ( ((String)jComboBoxPlayerColor.getSelectedItem()).indexOf("W") != -1) list = list.getSubListByColor("W");
        if ( ((String)jComboBoxPlayerColor.getSelectedItem()).indexOf("R") != -1) list = list.getSubListByColor("R");
View Full Code Here

        if ((today.getTime() - dataDate.getTime()) > (1000L*60L*60L*23L))
        {
            int setCount = mPlayer.getData().getKnownSets().size();
            int setRare = Global.getRand().nextInt(setCount);
            String setName = mPlayer.getData().getKnownSets().elementAt(setRare);
            CardSet set = CardSet.getSet(setName);
            CardList list = new CardList(set.getCards());
            list = list.getSubListByRarity("R");
            int rareSize = list.size();
            int listRare = Global.getRand().nextInt(rareSize);
            Card rare = list.getCard(listRare);

View Full Code Here

    private void jComboBoxSetActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBoxSetActionPerformed

        if (mClassSetting>0) return;
        if (jComboBoxSet.getSelectedIndex() != -1)
        {
            CardSet cset = new CardSet((String)jComboBoxSet.getSelectedItem());
            set = new CardList(cset.getCards());
        }
        else
            set = new CardList();
        resetCards();
View Full Code Here

        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());
        }
        else
            set = new CardList();
        resetCards();
    }//GEN-LAST:event_jButton1ActionPerformed
View Full Code Here

        init();


        if (jComboBoxSet.getSelectedIndex() != -1)
        {
            CardSet cset = new CardSet((String)jComboBoxSet.getSelectedItem());
            set = new CardList(cset.getCards());
        }
        else
            set = new CardList();

        resetCards();
View Full Code Here

TOP

Related Classes of csa.jportal.cardset.CardSet

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.