mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 06:22:01 -08:00
[refactor] removed generic from remaining Target classes
This commit is contained in:
parent
371918467f
commit
5f83ddf5ba
8 changed files with 11 additions and 12 deletions
|
|
@ -29,12 +29,13 @@
|
|||
package mage.target.common;
|
||||
|
||||
import mage.filter.common.FilterControlledCreaturePermanent;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class TargetControlledCreaturePermanent extends TargetControlledPermanent<TargetControlledCreaturePermanent> {
|
||||
public class TargetControlledCreaturePermanent extends TargetPermanent {
|
||||
|
||||
public TargetControlledCreaturePermanent() {
|
||||
this(1, 1, new FilterControlledCreaturePermanent(), false);
|
||||
|
|
|
|||
|
|
@ -35,9 +35,8 @@ import mage.target.TargetPermanent;
|
|||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
* @param <T>
|
||||
*/
|
||||
public class TargetControlledPermanent<T extends TargetControlledPermanent<T>> extends TargetPermanent {
|
||||
public class TargetControlledPermanent extends TargetPermanent {
|
||||
|
||||
public TargetControlledPermanent() {
|
||||
this(1, 1, new FilterControlledPermanent(), false);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import mage.target.TargetPermanent;
|
|||
*
|
||||
* @author LevelX2
|
||||
*/
|
||||
public class TargetCreatureOrPlaneswalker<T extends TargetCreatureOrPlaneswalker<T>> extends TargetPermanent {
|
||||
public class TargetCreatureOrPlaneswalker extends TargetPermanent {
|
||||
|
||||
public TargetCreatureOrPlaneswalker() {
|
||||
this(1, 1 ,new FilterCreatureOrPlaneswalkerPermanent(), false);
|
||||
|
|
|
|||
|
|
@ -34,10 +34,8 @@ import mage.target.TargetPermanent;
|
|||
/**
|
||||
*
|
||||
* @author LevelX2
|
||||
*
|
||||
* @param <T>
|
||||
*/
|
||||
public class TargetEnchantmentPermanent<T extends TargetEnchantmentPermanent<T>> extends TargetPermanent {
|
||||
public class TargetEnchantmentPermanent extends TargetPermanent {
|
||||
|
||||
public TargetEnchantmentPermanent(boolean required) {
|
||||
this();
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ import mage.target.TargetPermanent;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class TargetLandPermanent<T extends TargetLandPermanent<T>> extends TargetPermanent {
|
||||
public class TargetLandPermanent extends TargetPermanent {
|
||||
|
||||
public TargetLandPermanent() {
|
||||
this(1, 1, new FilterLandPermanent(), false);
|
||||
|
|
|
|||
|
|
@ -30,12 +30,13 @@ package mage.target.common;
|
|||
|
||||
import mage.filter.predicate.Predicates;
|
||||
import mage.filter.predicate.mageobject.NamePredicate;
|
||||
import mage.target.TargetPermanent;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class TargetNonBasicLandPermanent extends TargetLandPermanent<TargetNonBasicLandPermanent> {
|
||||
public class TargetNonBasicLandPermanent extends TargetPermanent {
|
||||
|
||||
public TargetNonBasicLandPermanent() {
|
||||
filter.add(Predicates.not(new NamePredicate("Island")));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue