Package mage.filter

Examples of mage.filter.FilterAbility$AbilityZonePredicate


      Game sim = createSimulation(game);
      SimulationNode.resetCount();
      root = new SimulationNode(sim, maxDepth, playerId);
      logger.fine("simulating pre combat actions -----------------------------------------------------------------------------------------");

      addActionsTimed(new FilterAbility());
      if (root.children.size() > 0) {
        root = root.children.get(0);
        actions = new LinkedList<Ability>(root.abilities);
        combat = root.combat;
      }
View Full Code Here


      currentScore = GameStateEvaluator.evaluate(playerId, game);
      Game sim = createSimulation(game);
      SimulationNode.resetCount();
      root = new SimulationNode(sim, maxDepth, playerId);
      logger.fine("simulating post combat actions ----------------------------------------------------------------------------------------");
      addActionsTimed(new FilterAbility());
      if (root.children.size() > 0) {
        root = root.children.get(0);
        actions = new LinkedList<Ability>(root.abilities);
        combat = root.combat;
      }
View Full Code Here

    game.getTurn().setPhase(new PostCombatMainPhase());
    if (game.getPhase().beginPhase(game, game.getActivePlayerId())) {
      game.getPhase().setStep(new PostCombatMainStep());
      game.getStep().beginStep(game, playerId);
      game.getPlayers().resetPassed();
      return addActions(node, new FilterAbility(), depth, alpha, beta);
    }
    return simulateCounterAttack(game, node, depth, alpha, beta);
  }
View Full Code Here

    if (!getNextAction(game)) {
      Game sim = createSimulation(game);
      SimulationNode.resetCount();
      root = new SimulationNode(sim, maxDepth, playerId);
      logger.fine("simulating actions");
      addActionsTimed(new FilterAbility());
      if (root.children.size() > 0) {
        root = root.children.get(0);
        actions = new LinkedList<Ability>(root.abilities);
        combat = root.combat;
      }
View Full Code Here

        return new TargetActivatedOrTriggeredAbility(this);
    }

    @Override
    public Filter getFilter() {
        return new FilterAbility();
    }
View Full Code Here

        return new TargetTriggeredAbility(this);
    }

    @Override
    public Filter getFilter() {
        return new FilterAbility();
    }
View Full Code Here

        return new ActivatedAbilityTarget(this);
    }

    @Override
    public Filter getFilter() {
        return new FilterAbility();
    }
View Full Code Here

TOP

Related Classes of mage.filter.FilterAbility$AbilityZonePredicate

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.