Examples of CardSim


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

    public static CardSimList onlyAllowedToPlay(CardSimList list, boolean ownTurn)
    {
        CardSimList ret = new CardSimList();
        for (int i = 0; i < list.size(); i++)
        {
            CardSim card = list.getCard(i);
            AIEnhancedCardHints hints = AIEnhancedCardHints.getHints(card);
            boolean notAllowed = false;

            if (    (card.isArtifact()) ||
                    (card.isCreature()) ||
                    (card.isLand()) ||
                    (card.isSorcery()) ||
                    (card.isEnchantment()) )
            {
                if (!ownTurn)
                {
                    continue;
                }
            }
            else if(card.isInstant())
            {
                if (ownTurn)
                {
                    notAllowed = notAllowed || hints.hasHint(HINT_SITUATION_INSTANT, PR_PLAYER_TURN_NOT_ALLOWED);
                }
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.