Package csa.jportal.ai.enhancedAI.enhancedHints

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


   
   
    public static boolean isPlayerDamageCard(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_OPPONENT, TA_IS_OWNER, S_IS_PLAYER, S_IS_OPPONENT, S_IS_OWNER);
        ret = ret && hasHint(card.getCard(), key, bundle);

        return ret;
    }
View Full Code Here


        return ret;
    }
    public static boolean isPlayerDamageCard(Card card)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle(TY_DAMAGE, SY_DAMAGE);
        ret = hasHint(card, bundle);

        bundle = new HintBundle(TA_IS_PLAYER, TA_IS_OPPONENT, TA_IS_OWNER, S_IS_PLAYER, S_IS_OPPONENT, S_IS_OWNER);
        ret = ret && hasHint(card, bundle);
        return ret;
    }
View Full Code Here

    // true if target can not be player!
    public static boolean isNonPlayerTarget(CardSim card, String key)
    {
        boolean ret;
        HintBundle bundle = new HintBundle(TA_IS_PLAYER, S_IS_PLAYER, TA_IS_OWNER, S_IS_OWNER);
        ret = hasHint(card.getCard(), key, bundle);
        return !ret;
    }
View Full Code Here

    // true if target can not be opponent!
    public static boolean isNonOpponentTarget(CardSim card, String key)
    {
        boolean ret;

        HintBundle bundle = new HintBundle(TA_IS_OPPONENT, S_IS_OPPONENT);
        ret = hasHint(card.getCard(), key, bundle);

        return !ret;
    }
View Full Code Here

        return !ret;
    }
    public static boolean isCreatureDamageCard(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_FROM_FIELD, S_FROM_FIELD);
        ret = ret && hasHint(card.getCard(), key, bundle);

        return ret;
    }
View Full Code Here

        return ret;
    }
    public static boolean isCreatureDamageCard(Card card)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle(TY_DAMAGE, SY_DAMAGE);
        ret = hasHint(card, bundle);

        bundle = new HintBundle(TA_FROM_FIELD, S_FROM_FIELD);
        ret = ret && hasHint(card, bundle);

        return ret;
    }
View Full Code Here

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

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

        return ret;
    }
View Full Code Here

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

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

        return ret;
    }
View Full Code Here

    }

    public static boolean isCreatureOnlyDamageCard(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_FROM_FIELD, S_FROM_FIELD);
        ret = ret && hasHint(card.getCard(), key, bundle);

        bundle = new HintBundle(TA_IS_OPPONENT, S_IS_OPPONENT);
        ret = ret && (!hasHint(card.getCard(), key, bundle));

        bundle = new HintBundle(TY_GENERAL_BUF, SY_GENERAL_BUF);
        ret = ret && (!hasHint(card.getCard(), key, bundle));

        return ret;
    }
View Full Code Here

    }

    public static boolean isLandDestroy(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle();
        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(TY_LAND_TO_HAND);
        bundle.add(TY_LAND_TO_GRAVE);
        bundle.add(TY_LAND_TO_LIBRARY);
        bundle.add(TY_LAND_TO_EXILE);
        ret = hasHint(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.