Package csa.jportal.ai.enhancedAI.enhancedHints

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


        return ret;
    }
    public static boolean isLandDestroy(Card card)
    {
        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, bundle);

        return ret;
    }
View Full Code Here


    // either from or to any filed,
    // draw lib, from battle to grave etc
    public static boolean isMoveAnyFieldCard(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle();
        bundle.add(SY_HAND_TO_GRAVE);
        bundle.add(SY_HAND_TO_LAND);
        bundle.add(SY_HAND_TO_FIELD);
        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_HAND);
        bundle.add(SY_LIBRARY_TO_LAND);
        bundle.add(SY_LIBRARY_TO_FIELD);
        bundle.add(SY_LIBRARY_TO_EXILE);
        bundle.add(SY_FIELD_TO_GRAVE);
        bundle.add(SY_FIELD_TO_HAND);
        bundle.add(SY_FIELD_TO_LIBRARY);
        bundle.add(SY_FIELD_TO_EXILE);
        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(SY_GRAVE_TO_EXILE);
        bundle.add(SY_SELF_DESTRUCT);

        bundle.add(TY_HAND_TO_GRAVE);
        bundle.add(TY_HAND_TO_LAND);
        bundle.add(TY_HAND_TO_FIELD);
        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_HAND);
        bundle.add(TY_LIBRARY_TO_LAND);
        bundle.add(TY_LIBRARY_TO_FIELD);
        bundle.add(TY_LIBRARY_TO_EXILE);
        bundle.add(TY_FIELD_TO_GRAVE);
        bundle.add(TY_FIELD_TO_HAND);
        bundle.add(TY_FIELD_TO_LIBRARY);
        bundle.add(TY_FIELD_TO_EXILE);
        bundle.add(TY_GRAVE_TO_HAND);
        bundle.add(TY_GRAVE_TO_FIELD);
        bundle.add(TY_GRAVE_TO_LAND);
        bundle.add(TY_GRAVE_TO_LIBRARY);
        bundle.add(TY_GRAVE_TO_EXILE);
        bundle.add(TY_SELF_DESTRUCT);
        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 isRemoveHand(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle();

        // might be bad
        bundle.add(TY_HAND_TO_GRAVE);
        bundle.add(SY_HAND_TO_GRAVE);
        bundle.add(TY_HAND_TO_EXILE);
        bundle.add(SY_HAND_TO_EXILE);
        bundle.add(TY_HAND_TO_LIBRARY);
        bundle.add(SY_HAND_TO_LIBRARY);
        ret = hasHint(card.getCard(), key, bundle);
        return ret;
    }
View Full Code Here

        return ret;
    }
    public static boolean isAntiMagicCard(Card card)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle(SY_NEGATE_DAMAGE_AMOUNT,SY_NEGATE_STACK_CARD, SY_NEGATE_STACK_ABILITY,SY_NEGATE_DAMAGE_AMOUNT, SY_FIELD_TO_GRAVE, SY_FIELD_TO_HAND, SY_FIELD_TO_LIBRARY, SY_FIELD_TO_EXILE);
        ret = hasHint(card, bundle);
        bundle = new HintBundle(TY_NEGATE_DAMAGE_AMOUNT,TY_NEGATE_STACK_CARD, TY_NEGATE_STACK_ABILITY,TY_NEGATE_DAMAGE_AMOUNT, TY_FIELD_TO_GRAVE, TY_FIELD_TO_HAND, TY_FIELD_TO_LIBRARY, TY_FIELD_TO_EXILE);
        ret = ret || hasHint(card, bundle);
        return ret;
    }
View Full Code Here

        return ret;
    }
    public static boolean isCardMagicCard(Card card)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle(TY_LIBRARY_SHUFFLE, TY_LIBRARY_TO_HAND,TY_LIBRARY_TOP, TY_LIBRARY_BOTTOM,TY_GRAVE_TO_LIBRARY, TY_LIBRARY_ROCHADE, TY_OPENS_PLAYER_LIBRARY, TY_OPENS_OPPONENTS_LIBRARY, TY_CHOICE_LIBTOP_GRAVE, TY_CHOICE_LIBTOP_BOTTOM);
        ret = hasHint(card, bundle);
        bundle = new HintBundle(SY_LIBRARY_SHUFFLE, SY_LIBRARY_TO_HAND,SY_LIBRARY_TOP, SY_LIBRARY_BOTTOM,SY_GRAVE_TO_LIBRARY, SY_LIBRARY_ROCHADE, SY_OPENS_PLAYER_LIBRARY, SY_OPENS_OPPONENTS_LIBRARY, SY_CHOICE_LIBTOP_GRAVE, SY_CHOICE_LIBTOP_BOTTOM);
        ret = ret || hasHint(card, bundle);
        return ret;
    }
View Full Code Here

    }
   
    public static boolean isBufCard(Card card)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle(SY_NEGATE_DAMAGE_AMOUNT,  SY_TOUGHNESS_ADD, SY_POWER_ADD,SY_ABILISY_ADD,SY_COLOR_ADD, SY_PROTECTION_ADD, SY_GENERAL_BUF);
        ret = hasHint(card, bundle);
        bundle = new HintBundle(TY_NEGATE_DAMAGE_AMOUNT, TY_TOUGHNESS_ADD, TY_POWER_ADD,TY_ABILITY_ADD,TY_COLOR_ADD, TY_PROTECTION_ADD, TY_GENERAL_BUF);
        ret = ret || hasHint(card, bundle);
        return ret;
    }
View Full Code Here

        return ret;
    }
    public static boolean isBufCard(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle(SY_NEGATE_DAMAGE_AMOUNT,  SY_TOUGHNESS_ADD, SY_POWER_ADD,SY_ABILISY_ADD,SY_COLOR_ADD, SY_PROTECTION_ADD, SY_GENERAL_BUF);
        ret = hasHint(card.getCard(), key, bundle);
        bundle = new HintBundle(TY_NEGATE_DAMAGE_AMOUNT, TY_TOUGHNESS_ADD, TY_POWER_ADD,TY_ABILITY_ADD,TY_COLOR_ADD, TY_PROTECTION_ADD, TY_GENERAL_BUF);
        ret = ret || hasHint(card.getCard(), key, bundle);
        return ret;
    }
View Full Code Here

    }

    public static boolean isBufCardTarget(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle(TY_NEGATE_DAMAGE_AMOUNT, TY_TOUGHNESS_ADD, TY_POWER_ADD,TY_ABILITY_ADD,TY_COLOR_ADD, TY_PROTECTION_ADD, TY_GENERAL_BUF);
        ret = hasHint(card.getCard(), key, bundle);
        return ret;
    }
View Full Code Here

        return ret;
    }
    public static boolean isBufCardSource(CardSim card, String key)
    {
        boolean ret = false;
        HintBundle bundle = new HintBundle(SY_NEGATE_DAMAGE_AMOUNT,  SY_TOUGHNESS_ADD, SY_POWER_ADD,SY_ABILISY_ADD,SY_COLOR_ADD, SY_PROTECTION_ADD, SY_GENERAL_BUF);
        ret = hasHint(card.getCard(), key, bundle);
        return ret;
    }
View Full Code Here

    }
      
    public static boolean isDeBufCard(Card card)
    {
        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, 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, 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.