Examples of CardSimList


Examples of csa.jportal.ai.enhancedAI.enhancedSim.CardSimList

        return ret;
    }

    public static CardSimList removeRestrictedCards(String key, CardSimList list, int phase, boolean ownTurn, VirtualMatch vMatch)
    {
        CardSimList ret = new CardSimList();
        for (int i = 0; i < list.size(); i++)
        {
            CardSim card = list.getCard(i);
            int player = card.getOwner();
            int opponent = (card.getOwner()+1)%2;
            AIEnhancedCardHints hints = AIEnhancedCardHints.getHints(card);

            if (hints.hasHintType(key, HintAll.HINT_TYPE_PLAY_RESTRICTION))
            {
                if (hints.hasHint(key, HintAll.PR_ONLY_WHEN_OPPONENT_MORE_LANDS))
                {
                    if (vMatch.getLand(player).size()>=vMatch.getLand(opponent).size())
                        continue;
                }
            }
            ret.addCard(card);
        }
        return ret;
    }
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.