Examples of drawRandom()


Examples of csa.jportal.card.CardList.drawRandom()

            subList.addCard(c);
        }
        if (subList.size()==0) return null;
       
        return subList.drawRandom(1).getCard(0);       
    }

    int addOneCard(CardList deck, CardList subList, CardList heap)
    {
        Card toAdd=null;
View Full Code Here

Examples of csa.jportal.card.CardList.drawRandom()

        CardList prefAb = heap.getSubListWithOneAbility(preferredAbilities);
        CardList prefCre = heap.getSubListByAnySubType(preferredCreatures);
        CardList prefAbCre = prefAb.getSubListByAnySubType(preferredCreatures);
        if (prefAbCre.size() != 0)
            return prefAbCre.drawRandom(1).getCard(0);       
        if (prefAb.size() != 0)
            return prefAb.drawRandom(1).getCard(0);       
        if (prefCre.size() != 0)
            return prefCre.drawRandom(1).getCard(0);       
        return heap.drawRandom(1).getCard(0);       
View Full Code Here

Examples of csa.jportal.card.CardList.drawRandom()

            if (EAIHelper.isHealCard(c))
                subList.addCard(c);
        }
        if (subList.size()==0) return null;
       
        return subList.drawRandom(1).getCard(0);       
    }
    Card getPlayerDamageCard(CardList heap)
    {
        CardList subList = new CardList();
        if (jCheckBoxForceCreature.isSelected()) heap = heap.removeTypes("Creature");
View Full Code Here

Examples of csa.jportal.card.CardList.drawRandom()

            if (EAIHelper.isPlayerDamageCard(c) )
                subList.addCard(c);
        }
        if (subList.size()==0) return null;
       
        return subList.drawRandom(1).getCard(0);       
    }
    Card getCreatureDamageCard(CardList heap)
    {
        CardList subList = new CardList();
        if (jCheckBoxForceCreature.isSelected()) heap = heap.removeTypes("Creature");
View Full Code Here

Examples of csa.jportal.card.CardList.drawRandom()

            if (EAIHelper.isCreatureDamageCard(c) )
                subList.addCard(c);
        }
        if (subList.size()==0) return null;
       
        return subList.drawRandom(1).getCard(0);       
    }
    Card getLandDestroyCard(CardList heap)
    {
        CardList subList = new CardList();
        if (jCheckBoxForceCreature.isSelected()) heap = heap.removeTypes("Creature");
View Full Code Here

Examples of csa.jportal.card.CardList.drawRandom()

            if (EAIHelper.isLandDestroy(c) )
                subList.addCard(c);
        }
        if (subList.size()==0) return null;
       
        return subList.drawRandom(1).getCard(0);       
    }
    Card getBuffyCard(CardList heap)
    {
        CardList subList = new CardList();
        if (jCheckBoxForceCreature.isSelected()) heap = heap.removeTypes("Creature");
View Full Code Here

Examples of csa.jportal.card.CardList.drawRandom()

            if (EAIHelper.isDeBufCard(c) )
                subList.addCard(c);
        }
        if (subList.size()==0) return null;
       
        return subList.drawRandom(1).getCard(0);       
    }
    Card getAntiMagicCard(CardList heap)
    {
        CardList subList = new CardList();
        if (jCheckBoxForceCreature.isSelected()) heap = heap.removeTypes("Creature");
View Full Code Here

Examples of csa.jportal.card.CardList.drawRandom()

            if (EAIHelper.isAntiMagicCard(c) )
                subList.addCard(c);
        }
        if (subList.size()==0) return null;
       
        return subList.drawRandom(1).getCard(0);       
    }
    Card getCardMagicCard(CardList heap)
    {
        // cards that enable to draw more cards
        CardList subList = new CardList();
View Full Code Here

Examples of csa.jportal.card.CardList.drawRandom()

            if (EAIHelper.isCardMagicCard(c) )
                subList.addCard(c);
        }
        if (subList.size()==0) return null;
       
        return subList.drawRandom(1).getCard(0);       
    }
    Card getTrickyCard(CardList heap)
    {
        // every non creature card, that is not included in the above!
        CardList subList = new CardList();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.