Package csa.jportal.ai.enhancedAI.enhancedSim

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


        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

        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

    {
        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

TOP

Related Classes of csa.jportal.ai.enhancedAI.enhancedSim.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.