Examples of sortListByManaCost()


Examples of csa.jportal.ai.enhancedAI.enhancedSim.CardSimList.sortListByManaCost()

        if (list==null) return null;
        if (list.size()==0) return null;

        CardSimList subList = list.sortListByPower();
        subList = subList.getSubPowerEqual(subList.getCard(subList.size()-1).getNowPower());
        subList = subList.sortListByManaCost();
        return subList.getCard(subList.size()-1);
    }

    /** a Creature which can be killed with given damage, highest possible toughness to be reduced to zero
     * <BR><b>No Hint required</b><BR>
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.enhancedSim.CardSimList.sortListByManaCost()

                        }
                    }
                    if (testMana)
                        l = onlyEnoughManaGeneral(l, lands);

                    l = l.sortListByManaCost();
                    if (l.size()>0)
                    {
                        result = l.getCard(l.size()-1);
                    }
                    break;
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.enhancedSim.CardSimList.sortListByManaCost()

                    // NOT LAND
                    nothingList = AIHelper.removeWithHint(nothingList, "EFFECT_PLAYER_LIBRARY_LAND_TO_HAND");
                    nothingList = AIHelper.removeWithHint(nothingList, "ADD_LAND_FROM_LIBRARY");
*/
                    CardSimList l = nothingList;
                    l=l.sortListByManaCost();
                    if (l.size()>0)
                    {
                        result = l.getCard(csa.Global.getRand().nextInt(l.size()));
                    }
                    break;
View Full Code Here

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

            }
            else if (AIHelper.hasHint(card, "EFFECT_PLAYER_CREATURE_FROM_GRAVE_TO_LIBRARY"))
            {
                // allround takes most expensive, but still playable card...
                CardList pl = AIHelper.onlyEnoughManaGeneral(playerList, E.match.getLand(E.player));
                pl = pl.sortListByManaCost();
                target = pl.getCard(pl.size()-1);
            }

            // if still nothing, than cheapest
            if (target == null)
View Full Code Here

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

        {
            // allround takes most expensive, but still playable card...
            CardList pl = AIHelper.onlyEnoughManaGeneral(playerList, E.match.getLand(E.player));
            if (pl.size() != 0)
            {
                pl = pl.sortListByManaCost();
                target = pl.getCard(pl.size()-1);
            }
            else
            {
                pl = playerList.sortListByManaCost();
View Full Code Here

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

        {
            // allround takes most expensive, but still playable card...
            CardList pl = AIHelper.onlyEnoughManaGeneral(playerList, E.match.getLand(E.player));
            if (pl.size() != 0)
            {
                pl = pl.sortListByManaCost();
                target = pl.getCard(pl.size()-1);
            }
            else
            {
                pl = playerList.sortListByManaCost();
View Full Code Here

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

        if (list==null) return null;
        if (list.size()==0) return null;

        CardList subList = list.sortListByPower();
        subList = subList.getSubPowerEqual(subList.getCard(subList.size()-1).getNowPower());
        subList = subList.sortListByManaCost();
        return subList.getCard(subList.size()-1);
    }
    public static CardSim getMostDamaging(CardSimList list)
    {
        if (list==null) return null;
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.