Package csa.jportal.card

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


        {
            // 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

        {
            // 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

        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.