Examples of HintBundle


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

    // either from or to any filed,
    // draw lib, from battle to grave etc
    public static boolean isMoveHandSource(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle();

        // might be bad
        bundle.add(SY_FIELD_TO_HAND);
        ret = hasHint(card.getCard(), key, bundle);
        return ret;
    }
View Full Code Here

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

        return ret;
    }
    public static boolean isPowerBuf(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle(SY_POWER_ADD);
        ret = hasHint(card.getCard(), key, bundle);
        bundle = new HintBundle( TY_POWER_ADD);
        ret = ret || hasHint(card.getCard(), key, bundle);
        return ret;
    }
View Full Code Here

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

    }

    public static boolean isPowerBufTarget(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle( TY_POWER_ADD);
        ret = hasHint(card.getCard(), key, bundle);
        return ret;
    }
View Full Code Here

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

    }

    public static boolean isPowerBufSource(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle(SY_POWER_ADD);
        ret = hasHint(card.getCard(), key, bundle);
        return ret;
    }
View Full Code Here

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

     // either from or to any filed,
    // draw lib, from battle to grave etc
    public static boolean isMoveGoodSource(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);

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

        ret = hasHint(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

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

    // either from or to any filed,
    // draw lib, from battle to grave etc
    public static boolean isMoveBad(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle();
        bundle.add(SY_HAND_TO_GRAVE);
        bundle.add(SY_HAND_TO_LIBRARY);
        bundle.add(SY_HAND_TO_EXILE);
        bundle.add(SY_LAND_TO_HAND);
        bundle.add(SY_LAND_TO_GRAVE);
        bundle.add(SY_LAND_TO_LIBRARY);
        bundle.add(SY_LAND_TO_EXILE);
        bundle.add(SY_LIBRARY_TO_GRAVE);
        bundle.add(SY_LIBRARY_TO_EXILE);
        bundle.add(SY_FIELD_TO_GRAVE);
        bundle.add(SY_FIELD_TO_LIBRARY);
        bundle.add(SY_FIELD_TO_EXILE);
        bundle.add(SY_GRAVE_TO_EXILE);

        bundle.add(TY_HAND_TO_GRAVE);
        bundle.add(TY_HAND_TO_LIBRARY);
        bundle.add(TY_HAND_TO_EXILE);
        bundle.add(TY_LAND_TO_HAND);
        bundle.add(TY_LAND_TO_GRAVE);
        bundle.add(TY_LAND_TO_LIBRARY);
        bundle.add(TY_LAND_TO_EXILE);
        bundle.add(TY_LIBRARY_TO_GRAVE);
        bundle.add(TY_LIBRARY_TO_EXILE);
        bundle.add(TY_FIELD_TO_GRAVE);
        bundle.add(TY_FIELD_TO_LIBRARY);
        bundle.add(TY_FIELD_TO_EXILE);
        bundle.add(TY_GRAVE_TO_EXILE);

        // might be bad
        bundle.add(TY_FIELD_TO_HAND);
        bundle.add(SY_FIELD_TO_HAND);
        ret = hasHint(card.getCard(), key, bundle);
        return ret;
    }
View Full Code Here

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

    // either from or to any filed,
    // draw lib, from battle to grave etc
    public static boolean isMoveBadTarget(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle();
        bundle.add(TY_HAND_TO_GRAVE);
        bundle.add(TY_HAND_TO_LIBRARY);
        bundle.add(TY_HAND_TO_EXILE);
        bundle.add(TY_LAND_TO_HAND);
        bundle.add(TY_LAND_TO_GRAVE);
        bundle.add(TY_LAND_TO_LIBRARY);
        bundle.add(TY_LAND_TO_EXILE);
        bundle.add(TY_LIBRARY_TO_GRAVE);
        bundle.add(TY_LIBRARY_TO_EXILE);
        bundle.add(TY_FIELD_TO_GRAVE);
        bundle.add(TY_FIELD_TO_LIBRARY);
        bundle.add(TY_FIELD_TO_EXILE);
        bundle.add(TY_GRAVE_TO_EXILE);

        // might be bad
        bundle.add(TY_FIELD_TO_HAND);
        ret = hasHint(card.getCard(), key, bundle);
        return ret;
    }
View Full Code Here

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

    // either from or to any filed,
    // draw lib, from battle to grave etc
    public static boolean isMoveBadSource(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle();
        bundle.add(SY_HAND_TO_GRAVE);
        bundle.add(SY_HAND_TO_LIBRARY);
        bundle.add(SY_HAND_TO_EXILE);
        bundle.add(SY_LAND_TO_HAND);
        bundle.add(SY_LAND_TO_GRAVE);
        bundle.add(SY_LAND_TO_LIBRARY);
        bundle.add(SY_LAND_TO_EXILE);
        bundle.add(SY_LIBRARY_TO_GRAVE);
        bundle.add(SY_LIBRARY_TO_EXILE);
        bundle.add(SY_FIELD_TO_GRAVE);
        bundle.add(SY_FIELD_TO_LIBRARY);
        bundle.add(SY_FIELD_TO_EXILE);
        bundle.add(SY_GRAVE_TO_EXILE);

        // might be bad
        bundle.add(SY_FIELD_TO_HAND);
        ret = hasHint(card.getCard(), key, bundle);
        return ret;
    }
View Full Code Here

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

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

        bundle = new HintBundle(TA_IS_PLAYER, TA_IS_OWNER, 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

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

        bundle = new HintBundle(TA_IS_PLAYER, TA_IS_OWNER);
        ret = ret && hasHint(card.getCard(), key, bundle);

        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.