Package mage.filter

Examples of mage.filter.FilterPlayer


  }

  public FilterCreatureOrPlayer(String name, UUID controllerId) {
    super(name);
    creatureFilter = new FilterCreaturePermanent();
    playerFilter = new FilterPlayer();
    creatureFilter.getControllerId().add(controllerId);
    playerFilter.getPlayerId().add(controllerId);
  }
View Full Code Here


  }

  public FilterCreatureOrPlayer(String name) {
    super(name);
    creatureFilter = new FilterCreaturePermanent();
    playerFilter = new FilterPlayer();
  }
View Full Code Here

  public FilterPlaneswalkerOrPlayer(Set<UUID> defenders) {
    super("planeswalker or player");
    planeswalkerFilter = new FilterPlaneswalkerPermanent();
    planeswalkerFilter.getControllerId().addAll(defenders);
    playerFilter = new FilterPlayer();
    playerFilter.getPlayerId().addAll(defenders);
  }
View Full Code Here

        ArrayList<Predicate<Player>> playerPredicates = new ArrayList<Predicate<Player>>();
        for (UUID defenderId : defenders) {
            playerPredicates.add(new PlayerIdPredicate(defenderId));
        }
        playerFilter = new FilterPlayer();
        playerFilter.add(Predicates.or(playerPredicates));
    }
View Full Code Here

    }

    public FilterPermanentOrPlayer(String name) {
        super(name);
        permanentFilter = new FilterPermanent();
        playerFilter = new FilterPlayer();
    }
View Full Code Here

    }

    public FilterCreatureOrPlayer(String name) {
        super(name);
        creatureFilter = new FilterCreaturePermanent();
        playerFilter = new FilterPlayer();
    }
View Full Code Here

    public TargetOpponent() {
        this(false);
    }
   
    public TargetOpponent(boolean notTarget) {
        super(1, 1, false, new FilterPlayer("opponent"));
        this.filter.add(new PlayerPredicate(TargetController.OPPONENT));
        setNotTarget(notTarget);
    }
View Full Code Here

    public TargetPlayer(int numTargets) {
        this(numTargets, numTargets, false);
    }

    public TargetPlayer(int minNumTargets, int maxNumTargets, boolean notTarget) {
        this(minNumTargets, maxNumTargets, notTarget, new FilterPlayer());
    }
View Full Code Here

TOP

Related Classes of mage.filter.FilterPlayer

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.