Package csa.jportal.ai.enhancedAI.enhancedHints

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


    }

    public static boolean isDeBufCard(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle(SY_TOUGHNESS_SUB, SY_POWER_SUB,SY_ABILISY_SUB,SY_COLOR_SUB, SY_PROTECTION_SUB, SY_ALL_MUST_ATTACK,SY_ONE_ONLY_BLOCCK,SY_GENERAL_DEBUF );
        ret = hasHint(card.getCard(), key, bundle);
        bundle = new HintBundle(TY_TOUGHNESS_SUB, TY_POWER_SUB,TY_ABILITY_SUB,TY_COLOR_SUB, TY_PROTECTION_SUB, TY_ALL_MUST_ATTACK,TY_ONE_ONLY_BLOCCK,TY_GENERAL_DEBUF );
        ret = ret || hasHint(card.getCard(), key, bundle);
        return ret;
    }
View Full Code Here


    }

    public static boolean isDeBufCardTarget(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle(TY_TOUGHNESS_SUB, TY_POWER_SUB,TY_ABILITY_SUB,TY_COLOR_SUB, TY_PROTECTION_SUB, TY_ALL_MUST_ATTACK,TY_ONE_ONLY_BLOCCK,TY_GENERAL_DEBUF );
        ret = hasHint(card.getCard(), key, bundle);
        return ret;
    }
View Full Code Here

        return ret;
    }
    public static boolean isDeBufCardSource(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle(SY_TOUGHNESS_SUB, SY_POWER_SUB,SY_ABILISY_SUB,SY_COLOR_SUB, SY_PROTECTION_SUB, SY_ALL_MUST_ATTACK,SY_ONE_ONLY_BLOCCK,SY_GENERAL_DEBUF );
        ret = hasHint(card.getCard(), key, bundle);
        return ret;
    }
View Full Code Here

     // either from or to any filed,
    // draw lib, from battle to grave etc
    public static boolean isMoveGood(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle();
        bundle.add(SY_HAND_TO_LAND);
        bundle.add(SY_HAND_TO_FIELD);
        bundle.add(SY_LIBRARY_TO_HAND);
        bundle.add(SY_LIBRARY_TO_LAND);
        bundle.add(SY_LIBRARY_TO_FIELD);
        bundle.add(SY_GRAVE_TO_HAND);
        bundle.add(SY_GRAVE_TO_FIELD);
        bundle.add(SY_GRAVE_TO_LAND);
        bundle.add(SY_GRAVE_TO_LIBRARY);

        bundle.add(TY_HAND_TO_LAND);
        bundle.add(TY_HAND_TO_FIELD);
        bundle.add(TY_LIBRARY_TO_HAND);
        bundle.add(TY_LIBRARY_TO_LAND);
        bundle.add(TY_LIBRARY_TO_FIELD);
        bundle.add(TY_GRAVE_TO_HAND);
        bundle.add(TY_GRAVE_TO_FIELD);
        bundle.add(TY_GRAVE_TO_LAND);
        bundle.add(TY_GRAVE_TO_LIBRARY);

        // MIGHT be good if healer!
        bundle.add(SY_FIELD_TO_HAND);
        bundle.add(TY_FIELD_TO_HAND);

        ret = hasHint(card.getCard(), key, bundle);
        if (!ret)
        {
            bundle = new HintBundle();
            bundle.add(TY_LIBRARY_TOP);
            bundle.add(TA_FROM_LIBRARY);
            ret = hasAllHints(card.getCard(), key, bundle);
        }
        if (!ret)
        {
            bundle = new HintBundle();
            bundle.add(SY_LIBRARY_TOP);
            bundle.add(S_FROM_LIBRARY);
            ret = hasAllHints(card.getCard(), key, bundle);
        }
        return ret;
    }
View Full Code Here

     // either from or to any filed,
    // draw lib, from battle to grave etc
    public static boolean isMoveGoodTarget(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle();
        bundle.add(TY_HAND_TO_LAND);
        bundle.add(TY_HAND_TO_FIELD);
        bundle.add(TY_LIBRARY_TO_HAND);
        bundle.add(TY_LIBRARY_TO_LAND);
        bundle.add(TY_LIBRARY_TO_FIELD);
        bundle.add(TY_GRAVE_TO_HAND);
        bundle.add(TY_GRAVE_TO_FIELD);
        bundle.add(TY_GRAVE_TO_LAND);
        bundle.add(TY_GRAVE_TO_LIBRARY);

        // MIGHT be good if healer!
        bundle.add(TY_FIELD_TO_HAND);
        ret = hasHint(card.getCard(), key, bundle);

        if (!ret)
        {
            bundle = new HintBundle();
            bundle.add(TY_LIBRARY_TOP);
            bundle.add(TA_FROM_LIBRARY);
            ret = hasAllHints(card.getCard(), key, bundle);
        }
       
        return ret;
    }
View Full Code Here

TOP

Related Classes of csa.jportal.ai.enhancedAI.enhancedHints.HintBundle

Copyright © 2018 www.massapicom. 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.