Examples of CombatSimConfig


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

    // reduced List of blockers to the once not needed to block
    // returns the possible blockers
    // E.cconfig is used
    CardSimList removeBlockerTillAttackerDead(CardSimList allBlockers, CardSimList allAttackers, int attacker)
    {
        CombatSimConfig c = new CombatSimConfig(E.aiPlayer);
        c.attackers = allAttackers;
        c.attackerLands = vMatch.getLand(attacker);
        c.blockerLands = vMatch.getLand((attacker+1)%2);
        int blockerHealth = vMatch.getLife((attacker+1)%2);
        CombatSimNew csim = new CombatSimNew(allAttackers, allBlockers, c, false);
View Full Code Here

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

                    CardSimList possibleAttackers = leaf.vMatch.getPossibleAttackers();
                    possibleAttackers.removeListDirect(activated);
    //public CombatFormation computeBestAttack(Weighting weighting, int attackerHealth, int blockerHealth, CardSimList notHereEvaluatedAttackers, CardSimList externalRemovedAttackers, CardSimList allBlockers)

           
                    CombatSimConfig c = new CombatSimConfig(E.aiPlayer);
                    c.attackers = possibleAttackers;
                    c.attackerLands = vMatch.getLand(opponent);
                    c.blockerLands = vMatch.getLand(player);
                    CardSimList blocker = vMatch.getBattlefield(player).getSubListByType("Creature");
                    blocker = blocker.removeActivateable();
View Full Code Here

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

        String blKey = generateBlockerKey(attacker, blocker);
        CombatFormation formation = blockerCache.get(blKey);

        if (formation == null)
        {
            CombatSimConfig c = new CombatSimConfig(E.aiPlayer);
            c.attackers = attacker;
            c.attackerLands = vMatch.getLand(E.pNumber);
            c.blockerLands = vMatch.getLand(opponentNo);

            CombatSimNew csim = new CombatSimNew(attacker, blocker, c, false);
View Full Code Here

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

        String blKey = generateBlockerKey(attacker, blocker);
        CombatFormation formation = blockerCache.get(blKey);

        if (formation == null)
        {
            CombatSimConfig c = new CombatSimConfig(E.aiPlayer);
            c.attackers = attacker;
            c.attackerLands = vMatch.getLand(opponentNo);
            c.blockerLands = vMatch.getLand(playerNo);
            int blockerHealth = vMatch.getLife(playerNo);
           
View Full Code Here

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

    }
    // player is no of attacker
    CardSimList getSubListUnblockable(CardSimList attackers, CardSimList blockers, int p)
    {
        CardSimList ret = new CardSimList();
        CombatSimConfig c = new CombatSimConfig(E.aiPlayer);
        c.attackerLands = vMatch.getLand(p);
        c.blockerLands = vMatch.getLand((p+1)%2);
        c.attackers = attackers;

        for (int a=0; a< attackers.size(); a++)
View Full Code Here

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

        pNumber = match.getMyNumber(player);
        aiPlayer = p.getAIPlayer();
        opponent = p.getMatch().getOpponent(p);
        weightingUsed = aiPlayer.getActiveWeighting();

        cconfig = new CombatSimConfig(aiPlayer);
    }
View Full Code Here

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

        player = p;
        pNumber = no;
        aiPlayer = p.getAIPlayer();
        opponent = m.getOpponent(no);
        weightingUsed = aiPlayer.getActiveWeighting();
        cconfig = new CombatSimConfig(aiPlayer);
    }
View Full Code Here

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

                            {
                               
                                VirtualMatch vMatch = new VirtualMatch(c.E.mInitiatorMatch);
                                int damageToDo = initiator.getNowPower();
                               
                                CombatSimConfig configTMP = new CombatSimConfig();
                                configTMP.attackers = new CardSimList(initiator);
                                configTMP.blockerLands = vMatch.getLand((initiator.getOwner()+1)%2);
                                configTMP.attackerLands = vMatch.getLand(initiator.getOwner());
                               
                                csa.jportal.ai.enhancedAI.enhancedSim.SingleFight sFight = csa.jportal.ai.enhancedAI.enhancedSim.SingleFight.getFight(initiator, vMatch.getBlocker(initiator), configTMP, false);
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.