mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
Renamed DynamicValue.clone to DynamicValue.copy
This commit is contained in:
parent
5305c3bfaa
commit
5dbe482662
70 changed files with 80 additions and 80 deletions
|
|
@ -7,6 +7,6 @@ import java.io.Serializable;
|
|||
|
||||
public interface DynamicValue extends Serializable {
|
||||
int calculate(Game game, Ability sourceAbility);
|
||||
DynamicValue clone();
|
||||
DynamicValue copy();
|
||||
String getMessage();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ public class AuraAttachedCount implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new AuraAttachedCount(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ public class CardsInAllGraveyardsCount implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new CardsInAllGraveyardsCount(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -43,7 +43,7 @@ public class CardsInControllerGraveyardCount implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new CardsInControllerGraveyardCount(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ public class CardsInControllerHandCount implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new CardsInControllerHandCount();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ public class ControllerLifeCount implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new ControllerLifeCount();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public class CountersCount implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new CountersCount(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public class DiscardCostCardConvertedMana implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new DiscardCostCardConvertedMana();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public class DomainValue implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new DomainValue(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ public class EquipmentAttachedCount implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new EquipmentAttachedCount(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,7 +69,7 @@ public class ExileFromHandCostCardConvertedMana implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new ExileFromHandCostCardConvertedMana();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public class GetXValue implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public GetXValue clone() {
|
||||
public GetXValue copy() {
|
||||
return new GetXValue();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ public class ManaTypeInManaPoolCount implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new ManaTypeInManaPoolCount(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ public class ManacostVariableValue implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new ManacostVariableValue();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ public class MultikickerCount implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new MultikickerCount();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ public class OpponentsLostLifeCount implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new OpponentsLostLifeCount();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public class PermanentsOnBattlefieldCount implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new PermanentsOnBattlefieldCount(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public class SacrificeCostCreaturesPower implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new SacrificeCostCreaturesPower();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ public class SacrificeCostCreaturesToughness implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new SacrificeCostCreaturesToughness();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -8,11 +8,11 @@ public class SignInversionDynamicValue implements DynamicValue {
|
|||
private DynamicValue value;
|
||||
|
||||
public SignInversionDynamicValue(DynamicValue value) {
|
||||
this.value = value.clone();
|
||||
this.value = value.copy();
|
||||
}
|
||||
|
||||
SignInversionDynamicValue(final SignInversionDynamicValue dynamicValue) {
|
||||
this.value = dynamicValue.value.clone();
|
||||
this.value = dynamicValue.value.copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -21,7 +21,7 @@ public class SignInversionDynamicValue implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new SignInversionDynamicValue(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ public class SourcePermanentPowerCount implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new SourcePermanentPowerCount();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ public class StaticValue implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new StaticValue(this);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ public class SunburstCount implements DynamicValue{
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new SunburstCount();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public class TargetConvertedManaCost implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new TargetConvertedManaCost();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ public class TargetPermanentPowerCount implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new TargetPermanentPowerCount();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ public class UrzaTerrainValue implements DynamicValue {
|
|||
}
|
||||
|
||||
@Override
|
||||
public DynamicValue clone() {
|
||||
public DynamicValue copy() {
|
||||
return new UrzaTerrainValue(v);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -56,13 +56,13 @@ public class CreateTokenEffect extends OneShotEffect<CreateTokenEffect> {
|
|||
public CreateTokenEffect(Token token, DynamicValue amount) {
|
||||
super(Outcome.PutCreatureInPlay);
|
||||
this.token = token;
|
||||
this.amount = amount.clone();
|
||||
this.amount = amount.copy();
|
||||
setText();
|
||||
}
|
||||
|
||||
public CreateTokenEffect(final CreateTokenEffect effect) {
|
||||
super(effect);
|
||||
this.amount = effect.amount.clone();
|
||||
this.amount = effect.amount.copy();
|
||||
this.token = effect.token.copy();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ public class CreateTokenTargetEffect extends OneShotEffect<CreateTokenTargetEffe
|
|||
public CreateTokenTargetEffect(Token token, DynamicValue amount) {
|
||||
super(Constants.Outcome.PutCreatureInPlay);
|
||||
this.token = token;
|
||||
this.amount = amount.clone();
|
||||
this.amount = amount.copy();
|
||||
}
|
||||
|
||||
public CreateTokenTargetEffect(final CreateTokenTargetEffect effect) {
|
||||
|
|
|
|||
|
|
@ -90,7 +90,7 @@ public class DamageTargetEffect extends OneShotEffect<DamageTargetEffect> {
|
|||
|
||||
public DamageTargetEffect(final DamageTargetEffect effect) {
|
||||
super(effect);
|
||||
this.amount = effect.amount.clone();
|
||||
this.amount = effect.amount.copy();
|
||||
this.preventable = effect.preventable;
|
||||
this.targetDescription = effect.targetDescription;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public class DiscardControllerEffect extends OneShotEffect<DiscardControllerEffe
|
|||
|
||||
public DiscardControllerEffect(final DiscardControllerEffect effect) {
|
||||
super(effect);
|
||||
this.amount = effect.amount.clone();
|
||||
this.amount = effect.amount.copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ public class DiscardTargetEffect extends OneShotEffect<DiscardTargetEffect> {
|
|||
|
||||
public DiscardTargetEffect(final DiscardTargetEffect effect) {
|
||||
super(effect);
|
||||
this.amount = effect.amount.clone();
|
||||
this.amount = effect.amount.copy();
|
||||
this.randomDiscard = effect.randomDiscard;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -50,13 +50,13 @@ public class DrawCardControllerEffect extends OneShotEffect<DrawCardControllerEf
|
|||
|
||||
public DrawCardControllerEffect(DynamicValue amount) {
|
||||
super(Outcome.DrawCard);
|
||||
this.amount = amount.clone();
|
||||
this.amount = amount.copy();
|
||||
setText();
|
||||
}
|
||||
|
||||
public DrawCardControllerEffect(final DrawCardControllerEffect effect) {
|
||||
super(effect);
|
||||
this.amount = effect.amount.clone();
|
||||
this.amount = effect.amount.copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -51,12 +51,12 @@ public class DrawCardTargetEffect extends OneShotEffect<DrawCardTargetEffect> {
|
|||
|
||||
public DrawCardTargetEffect(DynamicValue amount) {
|
||||
super(Outcome.DrawCard);
|
||||
this.amount = amount.clone();
|
||||
this.amount = amount.copy();
|
||||
}
|
||||
|
||||
public DrawCardTargetEffect(final DrawCardTargetEffect effect) {
|
||||
super(effect);
|
||||
this.amount = effect.amount.clone();
|
||||
this.amount = effect.amount.copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@ public class DynamicManaEffect extends BasicManaEffect {
|
|||
public DynamicManaEffect(final DynamicManaEffect effect) {
|
||||
super(effect);
|
||||
this.computedMana = effect.computedMana.copy();
|
||||
this.amount = effect.amount.clone();
|
||||
this.amount = effect.amount.copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public class GainLifeEffect extends OneShotEffect<GainLifeEffect> {
|
|||
|
||||
public GainLifeEffect(final GainLifeEffect effect) {
|
||||
super(effect);
|
||||
this.life = effect.life.clone();
|
||||
this.life = effect.life.copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ public class LookLibraryAndPickControllerEffect extends LookLibraryControllerEff
|
|||
|
||||
public LookLibraryAndPickControllerEffect(final LookLibraryAndPickControllerEffect effect) {
|
||||
super(effect);
|
||||
this.numberToPick = effect.numberToPick.clone();
|
||||
this.numberToPick = effect.numberToPick.copy();
|
||||
this.filter = effect.filter.copy();
|
||||
this.revealPickedCards = effect.revealPickedCards;
|
||||
this.targetPickedCards = effect.targetPickedCards;
|
||||
|
|
|
|||
|
|
@ -91,7 +91,7 @@ public class LookLibraryControllerEffect extends OneShotEffect<LookLibraryContro
|
|||
|
||||
public LookLibraryControllerEffect(final LookLibraryControllerEffect effect) {
|
||||
super(effect);
|
||||
this.numberOfCards = effect.numberOfCards.clone();
|
||||
this.numberOfCards = effect.numberOfCards.copy();
|
||||
this.mayShuffleAfter = effect.mayShuffleAfter;
|
||||
this.targetZoneLookedCards = effect.targetZoneLookedCards;
|
||||
this.putOnTop = effect.putOnTop;
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public class LoseLifeTargetEffect extends OneShotEffect<LoseLifeTargetEffect> {
|
|||
|
||||
public LoseLifeTargetEffect(final LoseLifeTargetEffect effect) {
|
||||
super(effect);
|
||||
this.amount = effect.amount.clone();
|
||||
this.amount = effect.amount.copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public class PutLibraryIntoGraveTargetEffect extends OneShotEffect<PutLibraryInt
|
|||
|
||||
public PutLibraryIntoGraveTargetEffect(final PutLibraryIntoGraveTargetEffect effect) {
|
||||
super(effect);
|
||||
this.amount = effect.amount.clone();
|
||||
this.amount = effect.amount.copy();
|
||||
}
|
||||
|
||||
public void setAmount(DynamicValue value) {
|
||||
|
|
|
|||
|
|
@ -69,8 +69,8 @@ public class BoostEnchantedEffect extends ContinuousEffectImpl<BoostEnchantedEff
|
|||
|
||||
public BoostEnchantedEffect(final BoostEnchantedEffect effect) {
|
||||
super(effect);
|
||||
this.power = effect.power.clone();
|
||||
this.toughness = effect.toughness.clone();
|
||||
this.power = effect.power.copy();
|
||||
this.toughness = effect.toughness.copy();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -73,8 +73,8 @@ public class BoostEquippedEffect extends ContinuousEffectImpl<BoostEquippedEffec
|
|||
|
||||
public BoostEquippedEffect(final BoostEquippedEffect effect) {
|
||||
super(effect);
|
||||
this.power = effect.power.clone();
|
||||
this.toughness = effect.toughness.clone();
|
||||
this.power = effect.power.copy();
|
||||
this.toughness = effect.toughness.copy();
|
||||
this.fixedTarget = effect.fixedTarget;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,8 +69,8 @@ public class BoostSourceEffect extends ContinuousEffectImpl<BoostSourceEffect> i
|
|||
|
||||
public BoostSourceEffect(final BoostSourceEffect effect) {
|
||||
super(effect);
|
||||
this.power = effect.power.clone();
|
||||
this.toughness = effect.toughness.clone();
|
||||
this.power = effect.power.copy();
|
||||
this.toughness = effect.toughness.copy();
|
||||
this.lockedIn = effect.lockedIn;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -72,8 +72,8 @@ public class BoostTargetEffect extends ContinuousEffectImpl<BoostTargetEffect> {
|
|||
|
||||
public BoostTargetEffect(final BoostTargetEffect effect) {
|
||||
super(effect);
|
||||
this.power = effect.power.clone();
|
||||
this.toughness = effect.toughness.clone();
|
||||
this.power = effect.power.copy();
|
||||
this.toughness = effect.toughness.copy();
|
||||
this.lockedIn = effect.lockedIn;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue