Package csa.jportal.ai.standardAI.sim

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

Related Classes of csa.jportal.ai.standardAI.sim.SingleFight

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.