Package mage.game.turn

Examples of mage.game.turn.CombatDamageStep


    if (Thread.interrupted()) {
      Thread.currentThread().interrupt();
      logger.fine("interrupted");
      return;
    }
    simulateStep(game, new CombatDamageStep(true));
    simulateStep(game, new CombatDamageStep(false));
    simulateStep(game, new EndOfCombatStep());
  }
View Full Code Here


          break;
        case DECLARE_ATTACKERS:
          game.getPhase().setStep(new DeclareBlockersStep());
          break;
        case DECLARE_BLOCKERS:
          game.getPhase().setStep(new CombatDamageStep(true));
          break;
        case COMBAT_DAMAGE:
          if (((CombatDamageStep)currentPhase.getStep()).getFirst())
            game.getPhase().setStep(new CombatDamageStep(false));
          else
            game.getPhase().setStep(new EndOfCombatStep());
          break;
        case END_COMBAT:
          game.getTurn().setPhase(new PostCombatMainPhase());
View Full Code Here

            sim.applyEffects();
        }
        sim.fireEvent(GameEvent.getEvent(GameEvent.EventType.DECLARE_BLOCKERS_STEP_POST, sim.getActivePlayerId(), sim.getActivePlayerId()));

        simulateStep(sim, new FirstCombatDamageStep());
        simulateStep(sim, new CombatDamageStep());
        simulateStep(sim, new EndOfCombatStep());
        // The following commented out call produces random freezes.
        //sim.checkStateAndTriggered();
        while (!sim.getStack().isEmpty()) {
            sim.getStack().resolve(sim);
View Full Code Here

            sim.applyEffects();
        }
        sim.fireEvent(GameEvent.getEvent(GameEvent.EventType.DECLARE_BLOCKERS_STEP_POST, sim.getActivePlayerId(), sim.getActivePlayerId()));

        simulateStep(sim, new FirstCombatDamageStep());
        simulateStep(sim, new CombatDamageStep());
        simulateStep(sim, new EndOfCombatStep());
        // The following commented out call produces random freezes.
        //sim.checkStateAndTriggered();
        while (!sim.getStack().isEmpty()) {
            triggered = true;
View Full Code Here

            Thread.currentThread().interrupt();
            logger.debug("interrupted");
            return;
        }
        simulateStep(game, new FirstCombatDamageStep());
        simulateStep(game, new CombatDamageStep());
        simulateStep(game, new EndOfCombatStep());
    }
View Full Code Here

TOP

Related Classes of mage.game.turn.CombatDamageStep

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.