Package mage.game.turn

Examples of mage.game.turn.DeclareAttackersStep


    }
    if (game.getTurn().getStepType() != PhaseStep.DECLARE_BLOCKERS) {
      game.getTurn().setPhase(new CombatPhase());
      if (game.getPhase().beginPhase(game, game.getActivePlayerId())) {
        simulateStep(game, new BeginCombatStep());
        game.getPhase().setStep(new DeclareAttackersStep());
        if (!game.getStep().skipStep(game, game.getActivePlayerId())) {
          game.fireEvent(new GameEvent(GameEvent.EventType.DECLARE_ATTACKERS_STEP_PRE, null, null, game.getActivePlayerId()));
          if (!game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.DECLARING_ATTACKERS, game.getActivePlayerId(), game.getActivePlayerId()))) {
            val = simulateAttackers(game, node, game.getActivePlayerId(), depth, alpha, beta, counter);
          }
View Full Code Here


        case PRECOMBAT_MAIN:
          game.getTurn().setPhase(new CombatPhase());
          game.getPhase().setStep(new BeginCombatStep());
          break;
        case BEGIN_COMBAT:
          game.getPhase().setStep(new DeclareAttackersStep());
          break;
        case DECLARE_ATTACKERS:
          game.getPhase().setStep(new DeclareBlockersStep());
          break;
        case DECLARE_BLOCKERS:
View Full Code Here

        }
        if (game.getTurn().getStepType() != PhaseStep.DECLARE_BLOCKERS) {
            game.getTurn().setPhase(new CombatPhase());
            if (game.getPhase().beginPhase(game, game.getActivePlayerId())) {
                simulateStep(game, new BeginCombatStep());
                game.getPhase().setStep(new DeclareAttackersStep());
                if (!game.getStep().skipStep(game, game.getActivePlayerId())) {
                    game.fireEvent(new GameEvent(GameEvent.EventType.DECLARE_ATTACKERS_STEP_PRE, null, null, game.getActivePlayerId()));
                    if (!game.replaceEvent(GameEvent.getEvent(GameEvent.EventType.DECLARING_ATTACKERS, game.getActivePlayerId(), game.getActivePlayerId()))) {
                        val = simulateAttackers(game, node, game.getActivePlayerId(), depth, alpha, beta, counter);
                    }
View Full Code Here

TOP

Related Classes of mage.game.turn.DeclareAttackersStep

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.