Examples of AIEnhancedHint


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

                        ok = false;
                }
                ok = ok & (!error);
                for (int j = 0; j < nHints.size(); j++)
                {
                    AIEnhancedHint aIEnhancedHint = nHints.elementAt(j);

                   
                    // this is bad - but what the heck - one time conversion...
                    if (aIEnhancedHint.mData.getHintName().equals("TYPE NEEDED"))
                    {
View Full Code Here

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

        error = false;
        Vector<AIEnhancedHint> nHints = convertFromText(card);

        for (int j = 0; j < nHints.size(); j++)
        {
            AIEnhancedHint aIEnhancedHint = nHints.elementAt(j);
            mNHints.addHint(aIEnhancedHint.mData);
        }
        mNHints.save();

        card.setAIOk("CGEN");
View Full Code Here

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

                    Card sourceCard = trigger.initiatorCard;

                    AIEnhancedCardHints hints = AIEnhancedCardHints.getHints(sourceCard);

                    AIEnhancedHint hint = hints.getHint(HintAll.HINT_SITUATION_CARD_PLAYED, HintAll.TY_ATTACK_DENIAL);
                    if (hint != null)
                    {
                        // False Peace
                        TimedEffect effect = new TimedEffect();

                        effect.name = hint.toString();
                        effect.isBoolean = true;
                        effect.timeOutBoolean = false;
                        effect.effectOnTargetPlayer = mMatch.getMyNumber(trigger.targetPlayer);
                        effect.isTurnCount = true;
                        effect.turnsToLast = 2; // best guess
                        negateAttackPhase[effect.effectOnTargetPlayer] = true;
                        timedEffects.addElement(effect);
                    }

                    hint = hints.getHint(HintAll.HINT_SITUATION_CARD_PLAYED, HintAll.TY_UNTAP_DENIAL);
                    if (hint != null)
                    {
                        // exahustion
                        TimedEffect effect = new TimedEffect();

                        effect.name = hint.toString();
                        effect.isBoolean = true;
                        effect.timeOutBoolean = false;
                        effect.effectOnTargetPlayer = mMatch.getMyNumber(trigger.targetPlayer);
                        effect.isTurnCount = true;
                        effect.turnsToLast = 2; // best guess
                        negateUntapPhase[effect.effectOnTargetPlayer] = true;
                        timedEffects.addElement(effect);
                    }
                    hint = hints.getHint(HintAll.HINT_SITUATION_CARD_PLAYED, HintAll.TY_ALL_MUST_ATTACK);
                    if (hint != null)
                    {
                        // taunt
                        TimedEffect effect = new TimedEffect();

                        effect.name = hint.toString();
                        effect.isBoolean = true;
                        effect.timeOutBoolean = false;
                        effect.effectOnTargetPlayer = mMatch.getMyNumber(trigger.targetPlayer);
                        effect.isTurnCount = true;
                        effect.turnsToLast = 2; // best guess
                        allMustAttack[effect.effectOnTargetPlayer] = true;
                        timedEffects.addElement(effect);
                    }
                    hint = hints.getHint(HintAll.HINT_SITUATION_CARD_PLAYED, HintAll.TY_ALL_BLOCK_ONE);
                    if (hint != null)
                    {
                        // Alluring Scent
                        TimedEffect effect = new TimedEffect();

                        effect.name = hint.toString();
                        effect.isObject = true;
                        effect.timeOutObject = null;
                        effect.effectOnTargetPlayer = mMatch.getMyNumber(trigger.targetPlayer);
                        effect.isTurnCount = true;
                        effect.turnsToLast = 2; // best guess
View Full Code Here

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

    public Vector<AIEnhancedHint> hints  = new Vector<AIEnhancedHint>();

    public void setKey(String k)
    {
        for (int i = 0; i < hints.size(); i++) {
            AIEnhancedHint aIEnhancedHint = hints.elementAt(i);
            aIEnhancedHint.setKey(k);
        }
    }
View Full Code Here

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

        }
    }
    public void setValue(String v)
    {
        for (int i = 0; i < hints.size(); i++) {
            AIEnhancedHint aIEnhancedHint = hints.elementAt(i);
            if (aIEnhancedHint.mIsValue)
                aIEnhancedHint.setValue(v);
        }
    }
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.