Examples of BeginCombatStep


Examples of mage.game.turn.BeginCombatStep

      return GameStateEvaluator.evaluate(playerId, game);
    }
    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

Examples of mage.game.turn.BeginCombatStep

          game.getTurn().setPhase(new PreCombatMainPhase());
          game.getPhase().setStep(new PreCombatMainStep());
          break;
        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:
View Full Code Here

Examples of mage.game.turn.BeginCombatStep

            return GameStateEvaluator2.evaluate(playerId, game);
        }
        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
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.