Examples of removeType()


Examples of csa.jportal.ai.helper.Scoring.removeType()

                    break;
                }
                case Scoring.HEALTH:
                {
                    D.addLog("Taken HEALTH",debugLevel);
                    scorting.removeType(Scoring.HEALTH);

                    for (int i=0; i< list.size(); i++)
                    {
                        CardSim card = list.getCard(i);
                        AIEnhancedCardHints aHints = AIEnhancedCardHints.getHints(card);
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.removeType()

                    break;
                }
                case Scoring.DAMAGE:
                {
                    D.addLog("Taken DAMAGE",debugLevel);
                    scorting.removeType(Scoring.DAMAGE);
                    String[] h={"EFFECT_ONE_PLAYER_DAMAGE"};
                    for (int i=0; i< list.size(); i++)
                    {
                        CardSim card = list.getCard(i);
                        AIEnhancedCardHints aHints = AIEnhancedCardHints.getHints(card);
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.removeType()

                    break;
                }
                case Scoring.CREATURE:
                {
                    D.addLog("Taken CREATURE",debugLevel);
                    scorting.removeType(Scoring.CREATURE);
                    CardSimList l = list.getSubListByType("Creature");

                    boolean testMana=true;
                    if (initiator!=null)
                    {
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.removeType()

                    break;
                }
                case Scoring.CREATURE_DAMAGE:
                {
                    D.addLog("Taken CREATURE_DAMAGE",debugLevel);
                    scorting.removeType(Scoring.CREATURE_DAMAGE);

                    // NOT checked if one of the sorcueries does damage to the player!
                    // (e.g. "Rain of Daggers")
                    for (int i=0; i< list.size(); i++)
                    {
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.removeType()

                }

                case Scoring.HAND:
                {
                    D.addLog("Taken HAND",debugLevel);
                    scorting.removeType(Scoring.HAND);

                    String[] h={"EFFECT_WHEN_DRAW_CARD"};
                    for (int i=0; i< list.size(); i++)
                    {
                        CardSim card = list.getCard(i);
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.removeType()

        while ((color != null) && (success))
        {
            int neededToPay = costCopy.getMana(color);
            if (neededToPay == 0)
            {
                manaPoolScore.removeType(color);
                color = manaPoolScore.getLeastNotNull();
                continue;
            }
            else
            {
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.removeType()

        while ((color != null) && (success))
        {
            int neededToPay = costCopy.getMana(color);
            if (neededToPay == 0)
            {
                manaPoolScore.removeType(color);
                color = manaPoolScore.getLeastNotNull();
                continue;
            }
            else
            {
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.removeType()

            pairs[i].subListHeap = AIHelper.getSubListByType(tHeap, pairs[i].type);

            pairs[i].subListBooster = AIHelper.getSubListByType(tBooster, pairs[i].type);
            if (tHeap.size() > 0)
                pairs[i].current = (pairs[i].subListHeap.size()*100) / tHeap.size();
            sc.removeType(pairs[i].type);
            listSize += pairs[i].subListBooster.size();
        }
        pairs[6] = new Pair();
        if (listSize==0)
        {
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.removeType()

            {

                case Scoring.LAND_DESTROY:
                {
                    D.addLog("Taken LAND_DESTROY",debugLevel);
                    scorting.removeType(Scoring.LAND_DESTROY);

                    String[] h={"EFFECT_ONE_LAND_TO_GRAVE"};
                    for (int i=0; i< list.size(); i++)
                    {
                        Card card = list.getCard(i);
View Full Code Here

Examples of csa.jportal.ai.helper.Scoring.removeType()

                }

                case Scoring.LAND:
                {
                    D.addLog("Taken LAND",debugLevel);
                    scorting.removeType(Scoring.LAND);
                    CardList l = list.getSubListByType("Land");
                    if (l.size()>0)
                    {
                        result = l.getCard(0);
                        break;
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.