Examples of AIEnhancedCardHints


Examples of csa.jportal.ai.enhancedAI.enhancedHints.AIEnhancedCardHints

    public static boolean isTriggerCard(CardSim card)
    {
        boolean ret = false;

        AIEnhancedCardHints hints = AIEnhancedCardHints.getHints(card);
        if (hints == null) return false;
        ret = hints.hasKey(HintAll.HINT_SITUATION_TRIGGERED);

        return ret;
    }
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.enhancedHints.AIEnhancedCardHints

        for (int i=0; i < list.size(); i++)
        {
            CardSim card = list.getCard(i);
            if (card.isSick()) continue;
            if (card.isTapped()) continue;
            AIEnhancedCardHints hints = AIEnhancedCardHints.getHints(card);
            if (hints.hasHint(key, TY_NEGATE_DAMAGE_AMOUNT))
            {
                ret+=hints.getHintValueInt(key, CT_AMOUNT_COUNT);
            }
            if (hints.hasHint(key, SY_NEGATE_DAMAGE_AMOUNT))
            {
                ret+=hints.getHintValueInt(key, CS_AMOUNT_COUNT);
            }
        }
       
       
        return ret;
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.enhancedHints.AIEnhancedCardHints

   
   
    public static boolean isLibraryTop(CardSim card)
    {
        HintBundle bundle = new HintBundle(SY_LIBRARY_TOP, TY_LIBRARY_TOP);
        AIEnhancedCardHints hints = AIEnhancedCardHints.getHints(card.getCard());
        return hints.hasAnyHint(bundle);
    }
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.enhancedHints.AIEnhancedCardHints

        bundle.add(TY_LIBRARY_TO_FIELD);
        bundle.add(TA_FROM_LIBRARY);

        for (int i=0; i< list.size(); i++)
        {
            AIEnhancedCardHints hints = AIEnhancedCardHints.getHints(list.elementAt(i).card);
            if (hints.hasAnyHint(bundle))
                return true;
        }
        return false;
    }
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.enhancedHints.AIEnhancedCardHints

        myHints.save();
        // setAIHintsForCard();


        // TODO EnhancedAI Hints
        AIEnhancedCardHints eotherHints = AIEnhancedCardHints.getHints(otherCard);
        AIEnhancedCardHints emyHints = AIEnhancedCardHints.getHints(mCurrentCard);

        for (int i=0; i< eotherHints.size();i++)
        {
            AIEnhancedHintData otherHint = eotherHints.getHintByRow(i);
            AIEnhancedHintData aHint = AIEnhancedHint.buildNewHint(mCurrentCard);

            aHint.setHintKey(otherHint.getHintKey());
            aHint.setHintNumber(otherHint.getHintNumber());
            aHint.setHintName(otherHint.getHintName());
            aHint.setHintType(otherHint.getHintType());
            aHint.setHintValue(otherHint.getHintValue());
            aHint.setCardID(mCurrentCard.getId());
            aHint.setCardSet(mCurrentCard.getSet());
            emyHints.addHint(aHint);
        }
        emyHints.save();
        // setAIHintsForCard();
    }
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.enhancedHints.AIEnhancedCardHints

        myHints.save();
        // setAIHintsForCard();


        // TODO EnhancedAI Hints
        AIEnhancedCardHints eotherHints = AIEnhancedCardHints.getHints(otherCard);
        AIEnhancedCardHints emyHints = AIEnhancedCardHints.getHints(mCurrentCard);

        for (int i=0; i< eotherHints.size();i++)
        {
            AIEnhancedHintData otherHint = eotherHints.getHintByRow(i);
            AIEnhancedHintData aHint = AIEnhancedHint.buildNewHint(mCurrentCard);

            aHint.setHintKey(otherHint.getHintKey());
            aHint.setHintNumber(otherHint.getHintNumber());
            aHint.setHintName(otherHint.getHintName());
            aHint.setHintType(otherHint.getHintType());
            aHint.setHintValue(otherHint.getHintValue());
            aHint.setCardID(mCurrentCard.getId());
            aHint.setCardSet(mCurrentCard.getSet());
            emyHints.addHint(aHint);
        }
        emyHints.save();
        // setAIHintsForCard();
    }
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.enhancedHints.AIEnhancedCardHints

    //            }
    //            else
                {
                    if (key.equalsIgnoreCase(HintAll.HINT_SITUATION_CARD_PLAYED))
                    {
                        AIEnhancedCardHints hints = AIEnhancedCardHints.getHints(card);
                        // damgae is 1
                        // get land is 1
                        // get from grave is 1
                        // opponent destroy creature is 1
                       
                        if (isMoveHand(card, HintAll.HINT_SITUATION_CARD_PLAYED))
                        {
                            I = CardAndMana.CAM_PLAY_VARIABLE_+CardAndMana.CAM_PLAY_MAIN2;
                        }
                       
                        if (hints.hasAnyHint(key, MAIN1_CREATURE_HINTS) )
                        {
                            // set main 1
                            main1 = true;
                        }
                    }
                }

                if (main1)
                {
                    I += CardAndMana.CAM_PLAY_MAIN1;
                }



                postionDependency.put(idKey, I);
                return I;
            }
            if (!ret)
            {
                I = CardAndMana.CAM_PLAY_FIXED_+CardAndMana.CAM_PLAY_MAIN1;
            }
            if (ret)
            {
                if (key.equalsIgnoreCase(HintAll.HINT_SITUATION_CARD_PLAYED))
                {
                    AIEnhancedCardHints hints = AIEnhancedCardHints.getHints(card);
                    if (hints.hasAnyHint(key, new HintBundle(HintAll.PA_MAIN2_NEEDED)) )
                    {
                        I = CardAndMana.CAM_PLAY_VARIABLE_+CardAndMana.CAM_PLAY_MAIN2;
                    }
                    else
                    {
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.enhancedHints.AIEnhancedCardHints

        E.helper = this;
    }

    public static boolean hasHint(Card card, HintBundle bundle)
    {
        AIEnhancedCardHints hints = AIEnhancedCardHints.getHints(card);
        return hints.hasAnyHint(bundle);
    }
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.enhancedHints.AIEnhancedCardHints

        AIEnhancedCardHints hints = AIEnhancedCardHints.getHints(card);
        return hints.hasAnyHint(bundle);
    }
    public static boolean hasHint(CardSim card, String key, HintBundle bundle)
    {
        AIEnhancedCardHints hints = AIEnhancedCardHints.getHints(card.getCard());
        return hints.hasAnyHint(key, bundle);
    }
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.enhancedHints.AIEnhancedCardHints

        AIEnhancedCardHints hints = AIEnhancedCardHints.getHints(card.getCard());
        return hints.hasAnyHint(key, bundle);
    }
    public static boolean hasHint(Card card, String key, HintBundle bundle)
    {
        AIEnhancedCardHints hints = AIEnhancedCardHints.getHints(card);
        return hints.hasAnyHint(key, bundle);
    }
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.