Package mage.game.turn

Examples of mage.game.turn.UntapStep


        case CLEANUP:
          game.getPhase().getStep().beginStep(game, activePlayerId);
          if (!game.checkStateAndTriggered() && !game.isGameOver()) {
            game.getState().setActivePlayerId(game.getState().getPlayerList(game.getActivePlayerId()).getNext());
            game.getTurn().setPhase(new BeginningPhase());
            game.getPhase().setStep(new UntapStep());
          }
      }
      if (!game.getStep().skipStep(game, game.getActivePlayerId())) {
        if (game.getTurn().getStepType() == PhaseStep.DECLARE_ATTACKERS) {
          game.fireEvent(new GameEvent(GameEvent.EventType.DECLARE_ATTACKERS_STEP_PRE, null, null, activePlayerId));
View Full Code Here


      logger.fine("simulating -- counter attack");
      simulateToEnd(game);
      game.getState().setActivePlayerId(game.getState().getPlayerList(game.getActivePlayerId()).getNext());
      game.getTurn().setPhase(new BeginningPhase());
      if (game.getPhase().beginPhase(game, game.getActivePlayerId())) {
        simulateStep(game, new UntapStep());
        simulateStep(game, new UpkeepStep());
        simulateStep(game, new DrawStep());
        game.getPhase().endPhase(game, game.getActivePlayerId());
      }
      val = simulateCombat(game, node, depth-1, alpha, beta, true);
View Full Code Here

TOP

Related Classes of mage.game.turn.UntapStep

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.