Examples of SingleFight


Examples of csa.jportal.ai.enhancedAI.enhancedSim.SingleFight

        CardSimList blockersUsed = new CardSimList();
       
        for (int i=0; i< formation.singleFights.size(); i++)
        {
            SingleFight sf = formation.singleFights.elementAt(i);
            for(int b=0; b<sf.blocker.size(); b++)
            {
                CardSim bl = sf.blocker.getCard(b);
                allBlockers.moveCardTo(bl, blockersUsed);
            }
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.enhancedSim.SingleFight

        Vector <SingleFight> fights = formation.getFormation();
        int no=0;
        for (int f = 0; f < fights.size(); f++)
        {
            SingleFight singleFight = fights.elementAt(f);
            CardSim matchAttacker = vMatch.getAttacker(singleFight.attacker);
            CardSimList blockers = singleFight.blocker;

            if (blockers.size() > 0)
            {
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.enhancedSim.SingleFight

        Vector <SingleFight> fights = formation.getFormation();
        int no=0;
        boolean didBlock = false;
        for (int f = 0; f < fights.size(); f++)
        {
            SingleFight singleFight = fights.elementAt(f);
            CardSim matchAttacker = vMatch.getAttacker(singleFight.attacker);
            CardSimList blockers = singleFight.blocker;
            int ta = 0;

            for (int b = 0; b < blockers.size(); b++)
View Full Code Here

Examples of csa.jportal.ai.enhancedAI.enhancedSim.SingleFight

    {
        int lifeOfOpponent = vMatch.getLife((player+1)%2) - otherAttackDamage;
        int playerDamageScore = -Weighting.DEFAULT.getPlayerDamageScore(sFight.attacker.getNowPower(), lifeOfOpponent);
        boolean ret = true;
       
        SingleFight fight = SingleFight.getFight(sFight.attacker, sFight.blocker, null, false);
        fight.simAttack(true);

        int blockerDeadScore = 0;
        for (int i = 0; i< fight.blockerDead; i++)
        {
            CardSim bl = fight.blocker.getCard(i);
View Full Code Here

Examples of csa.jportal.ai.standardAI.sim.SingleFight

            while (loopAttacker < blockerFormation.getFormation().size())
            {
                E.D.addLog("EAI: entering loop, A counter = "+loopAttacker+" from "+(blockerFormation.getFormation().size()+1) ,debugLevel);
                E.D.addLog("EAI: B counter = "+loopBlocker+" from "+(blockerFormation.getFormation().elementAt(loopAttacker).blocker.size()+1) ,debugLevel);

                SingleFight sFight = blockerFormation.getFormation().elementAt(loopAttacker);
                E.D.addLog("EAI: SingleFight: "+sFight ,debugLevel);
                CardList blockers = sFight.blocker;
                Card attacker = sFight.attacker;

                while (loopBlocker < blockers.size())
                {
                    Card blocker = blockers.getCard(loopBlocker);
                    if (sFight.isBlockerUsed(blocker))
                    {
                        E.D.addLog("EAI: Blocker used: "+blocker ,debugLevel);
                        String blockerKey="TMP_KEY_"+round+"_attacker_blocker"+blocker.getUniqueID();
                        // tell answer script what blocker to use
                        aiPlayer.setObjectData(blockerKey, attacker);
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.