forked from External/mage
clean some of the most frequent copy constructor / copy method (#11053)
This commit is contained in:
parent
5ddb69e1ba
commit
96a2c277b2
66 changed files with 132 additions and 134 deletions
|
|
@ -1,15 +1,15 @@
|
|||
|
||||
package mage.cards.basiclands;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.abilities.mana.ActivatedManaAbilityImpl;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.constants.SuperType;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
|
|
@ -22,7 +22,7 @@ public abstract class BasicLand extends CardImpl {
|
|||
this.addAbility(mana);
|
||||
}
|
||||
|
||||
public BasicLand(BasicLand land) {
|
||||
protected BasicLand(final BasicLand land) {
|
||||
super(land);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -2,13 +2,11 @@
|
|||
|
||||
package mage.cards.basiclands;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.mana.GreenManaAbility;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
|
|
@ -18,12 +16,12 @@ public class Forest extends BasicLand {
|
|||
this.frameColor.setGreen(true);
|
||||
}
|
||||
|
||||
protected Forest(final Forest land) {
|
||||
private Forest(final Forest land) {
|
||||
super(land);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Card copy() {
|
||||
public Forest copy() {
|
||||
return new Forest(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,12 +2,11 @@
|
|||
|
||||
package mage.cards.basiclands;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.mana.BlueManaAbility;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
|
|
@ -18,12 +17,12 @@ public class Island extends BasicLand {
|
|||
this.frameColor.setBlue(true);
|
||||
}
|
||||
|
||||
public Island(Island land) {
|
||||
private Island(final Island land) {
|
||||
super(land);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Card copy() {
|
||||
public Island copy() {
|
||||
return new Island(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,12 +2,11 @@
|
|||
|
||||
package mage.cards.basiclands;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.mana.RedManaAbility;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
|
|
@ -18,12 +17,12 @@ public class Mountain extends BasicLand {
|
|||
this.frameColor.setRed(true);
|
||||
}
|
||||
|
||||
public Mountain(Mountain land) {
|
||||
private Mountain(final Mountain land) {
|
||||
super(land);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Card copy() {
|
||||
public Mountain copy() {
|
||||
return new Mountain(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,12 +2,11 @@
|
|||
|
||||
package mage.cards.basiclands;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.mana.WhiteManaAbility;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
|
|
@ -18,12 +17,12 @@ public class Plains extends BasicLand {
|
|||
this.frameColor.setWhite(true);
|
||||
}
|
||||
|
||||
public Plains(Plains land) {
|
||||
private Plains(final Plains land) {
|
||||
super(land);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Card copy() {
|
||||
public Plains copy() {
|
||||
return new Plains(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,12 +2,11 @@
|
|||
|
||||
package mage.cards.basiclands;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.ObjectColor;
|
||||
import mage.abilities.mana.BlackManaAbility;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.CardSetInfo;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
|
|
@ -18,12 +17,12 @@ public class Swamp extends BasicLand {
|
|||
this.frameColor.setBlack(true);
|
||||
}
|
||||
|
||||
public Swamp(Swamp land) {
|
||||
private Swamp(final Swamp land) {
|
||||
super(land);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Card copy() {
|
||||
public Swamp copy() {
|
||||
return new Swamp(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue