From d819053930f6cad4391a8bf27aa766529c56f046 Mon Sep 17 00:00:00 2001 From: North Date: Wed, 26 Jun 2013 20:34:34 +0300 Subject: [PATCH] Moved MockAbility to stand alone class --- Mage/src/mage/cards/MockAbility.java | 25 +++++++++++++++++++++++++ Mage/src/mage/cards/MockCard.java | 23 ----------------------- 2 files changed, 25 insertions(+), 23 deletions(-) create mode 100644 Mage/src/mage/cards/MockAbility.java diff --git a/Mage/src/mage/cards/MockAbility.java b/Mage/src/mage/cards/MockAbility.java new file mode 100644 index 0000000000..27a4134821 --- /dev/null +++ b/Mage/src/mage/cards/MockAbility.java @@ -0,0 +1,25 @@ +package mage.cards; + +import mage.abilities.AbilityImpl; +import mage.constants.AbilityType; +import mage.constants.Zone; + +class MockAbility extends AbilityImpl { + + private final String text; + + public MockAbility(String text) { + super(AbilityType.STATIC, Zone.ALL); + this.text = text; + } + + @Override + public MockAbility copy() { + return this; + } + + @Override + public String getRule(boolean all) { + return text; + } +} diff --git a/Mage/src/mage/cards/MockCard.java b/Mage/src/mage/cards/MockCard.java index a5393ea999..54f4aa6d6e 100644 --- a/Mage/src/mage/cards/MockCard.java +++ b/Mage/src/mage/cards/MockCard.java @@ -3,12 +3,9 @@ package mage.cards; import java.util.List; import mage.MageInt; import mage.abilities.Ability; -import mage.abilities.AbilityImpl; import mage.abilities.costs.mana.ManaCostsImpl; import mage.cards.repository.CardInfo; import mage.cards.repository.CardRepository; -import mage.constants.AbilityType; -import mage.constants.Zone; /** * @author North @@ -73,24 +70,4 @@ public class MockCard extends CardImpl { private Ability textAbilityFromString(final String text) { return new MockAbility(text); } - - private class MockAbility extends AbilityImpl { - - private final String text; - - public MockAbility(String text) { - super(AbilityType.STATIC, Zone.ALL); - this.text = text; - } - - @Override - public MockAbility copy() { - return this; - } - - @Override - public String getRule(boolean all) { - return text; - } - } }