Examples of HintBundle


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

        return ret;
    }
    public static boolean isSelfDamageCardSource(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle(SY_DAMAGE);
        ret = hasHint(card.getCard(), key, bundle);

        bundle = new HintBundle(S_IS_PLAYER, S_IS_OWNER);
        ret = ret && hasHint(card.getCard(), key, bundle);

        return ret;
    }
View Full Code Here

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

    }
    public static boolean isTapCard(CardSim card, String key)
    {
        boolean ret = false;

        HintBundle bundle = new HintBundle(SY_TO_TAP, SY_TO_UNTAP, TY_TO_TAP, TY_TO_UNTAP);
        ret = hasHint(card.getCard(), key, bundle);

        return ret;
    }
View Full Code Here

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

            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.HintBundle

    public static boolean isManaBuildingCard(CardSim card, String key)
    {
        if (card.isLand()) return true;
        boolean ret = false;

        HintBundle bundle = new HintBundle(SY_GENERATE_MANA, TY_GENERATE_MANA);
        ret = hasHint(card.getCard(), key, bundle);

        return ret;
    }
View Full Code Here

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

            CardSim card = list.getCard(i);
            boolean allowedNow = isAllowedToActivate(card, phase, ownTurn, vMatch);
            if (!allowedNow) continue;

            boolean recomendedNow = allowedNow;
            if (hasHint(card, HintAll.HINT_SITUATION_ACTIVATION, new HintBundle(PR_JIT_ACTIVATION)))
            {
                // if in stack we do not come here at all - so ignore stack checking
                // JIT means Just in Time
                // meaning here:
                // - only as stack reaction
View Full Code Here

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

    // check whether a player is
    // at all possible for targetcard selection
    public static boolean cardTargetOpponentPossible(CardSim sourceCard, String key , boolean SOURCE)
    {
        if (SOURCE)
            return EAIHelper.hasHint(sourceCard, key, new HintBundle(HintAll.SR_CARD_OPPONENT));
        return EAIHelper.hasHint(sourceCard, key, new HintBundle(HintAll.TR_CARD_OPPONENT));
    }
View Full Code Here

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

        return EAIHelper.hasHint(sourceCard, key, new HintBundle(HintAll.TR_CARD_OPPONENT));
    }
    public static boolean cardTargetPlayerPossible(CardSim sourceCard, String key , boolean SOURCE)
    {
        if (SOURCE)
            return EAIHelper.hasHint(sourceCard, key, new HintBundle(HintAll.SR_CARD_PLAYER));
        return EAIHelper.hasHint(sourceCard, key, new HintBundle(HintAll.TR_CARD_PLAYER));
    }
View Full Code Here

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

    public static int getDamagePrevention(VirtualMatch vMatch, int player, CardSimList list)
    {
        int ret = 0;
       
        String key = HintDefinition.HINT_SITUATION_ACTIVATION;
        HintBundle dpt = new HintBundle(TY_NEGATE_DAMAGE_AMOUNT);
        HintBundle dps = new HintBundle(SY_NEGATE_DAMAGE_AMOUNT);
        for (int i=0; i < list.size(); i++)
        {
            CardSim card = list.getCard(i);
            if (card.isSick()) continue;
            if (card.isTapped()) continue;
View Full Code Here

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

   
   
   
    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.HintBundle

        return hints.hasAnyHint(bundle);
    }

    public static boolean hasDrawFromLibrary(Vector<CardAndMana> list)
    {
        HintBundle bundle = new HintBundle(SY_LIBRARY_TO_LAND, SY_LIBRARY_ROCHADE, SY_LIBRARY_TO_FIELD, SY_LIBRARY_TO_HAND, S_FROM_LIBRARY);
        bundle.add(TY_LIBRARY_TO_LAND);
        bundle.add(TY_LIBRARY_TO_HAND);
        bundle.add(TY_LIBRARY_ROCHADE);
        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))
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.