[refactor] removed generic parameter from Cost

This commit is contained in:
North 2014-06-02 22:30:01 +03:00
parent a6f1bc7f00
commit e2c7fdf121
103 changed files with 105 additions and 118 deletions

View file

@ -74,7 +74,7 @@ public class ElvishSpiritGuide extends CardImpl {
}
class ExileSourceFromHandCost extends CostImpl<ExileSourceFromHandCost> {
class ExileSourceFromHandCost extends CostImpl {
public ExileSourceFromHandCost() {
this.text = "Exile {this} from your hand";

View file

@ -77,7 +77,7 @@ public class BlindingPowder extends CardImpl {
}
}
class BlindingPowderUnattachCost extends CostImpl<BlindingPowderUnattachCost> {
class BlindingPowderUnattachCost extends CostImpl {
public BlindingPowderUnattachCost() {
this.text = "Unattach Blinding Powder";

View file

@ -124,7 +124,7 @@ class ShurikenDamageEffect extends OneShotEffect {
}
class ShurikenUnattachCost extends CostImpl<ShurikenUnattachCost> {
class ShurikenUnattachCost extends CostImpl {
Permanent equipment;

View file

@ -160,7 +160,7 @@ class HankyuDealsDamageEffect extends OneShotEffect {
}
class HankyuCountersSourceCost extends CostImpl<HankyuCountersSourceCost> {
class HankyuCountersSourceCost extends CostImpl {
private int removedCounters;
private UUID effectGivingEquipmentId;

View file

@ -83,7 +83,7 @@ public class HisokaMinamoSensei extends CardImpl {
}
class HisokaMinamoSenseiDiscardTargetCost extends CostImpl<HisokaMinamoSenseiDiscardTargetCost> {
class HisokaMinamoSenseiDiscardTargetCost extends CostImpl {
protected int convertedManaCosts = 0;

View file

@ -98,7 +98,7 @@ public class VishKalBloodArbiter extends CardImpl {
}
}
class VishKalBloodArbiterCost extends CostImpl<VishKalBloodArbiterCost> {
class VishKalBloodArbiterCost extends CostImpl {
private int amount;
private String name;

View file

@ -181,7 +181,7 @@ class MarathWillOfTheWildElementalToken extends Token {
}
}
class MarathWillOfTheWildRemoveCountersCost extends CostImpl<MarathWillOfTheWildRemoveCountersCost> {
class MarathWillOfTheWildRemoveCountersCost extends CostImpl {
public MarathWillOfTheWildRemoveCountersCost() {
this.text = "Remove X +1/+1 counters from Marath";

View file

@ -119,7 +119,7 @@ class JarOfEyeballsTriggeredAbility extends TriggeredAbilityImpl {
}
}
class JarOfEyeballsCost extends CostImpl<JarOfEyeballsCost> {
class JarOfEyeballsCost extends CostImpl {
private int removedCounters;

View file

@ -75,7 +75,7 @@ public class LeoninBola extends CardImpl {
}
}
class UnattachCost extends CostImpl<UnattachCost> {
class UnattachCost extends CostImpl {
private UUID attachmentid;

View file

@ -86,7 +86,7 @@ public class HatchetBully extends CardImpl {
}
}
class HatchetBullyCost extends CostImpl<HatchetBullyCost> {
class HatchetBullyCost extends CostImpl {
public HatchetBullyCost() {
this.text = "Put a -1/-1 counter on a creature you control";

View file

@ -97,7 +97,7 @@ public class ImpelledGiant extends CardImpl {
}
}
class ImpelledGiantCost extends CostImpl<ImpelledGiantCost> {
class ImpelledGiantCost extends CostImpl {
TargetControlledPermanent target;

View file

@ -104,7 +104,7 @@ class BackFromTheBrinkEffect extends OneShotEffect {
}
class BackFromTheBrinkCost extends CostImpl<BackFromTheBrinkCost> {
class BackFromTheBrinkCost extends CostImpl {
public BackFromTheBrinkCost() {
this.addTarget(new TargetCardInYourGraveyard(new FilterCreatureCard("creature card from your graveyard")));

View file

@ -99,7 +99,7 @@ class VampireToken extends Token {
}
}
class ControlFiveVampiresCost extends CostImpl<ControlFiveVampiresCost> {
class ControlFiveVampiresCost extends CostImpl {
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent();
static {

View file

@ -86,7 +86,7 @@ public class SkirsdagHighPriest extends CardImpl {
}
}
class SkirsdagHighPriestCost extends CostImpl<SkirsdagHighPriestCost> {
class SkirsdagHighPriestCost extends CostImpl {
public SkirsdagHighPriestCost() {
this.text = "Activate this ability only if a creature died this turn";

View file

@ -81,7 +81,7 @@ public class SageOfHours extends CardImpl {
}
}
class SageOfHoursCost extends CostImpl<SageOfHoursCost> {
class SageOfHoursCost extends CostImpl {
private int removedCounters;

View file

@ -79,7 +79,7 @@ public class SilvergillAdept extends CardImpl {
}
}
class SilvergillAdeptCost extends CostImpl<SilvergillAdeptCost> {
class SilvergillAdeptCost extends CostImpl {
private static final FilterCard filter = new FilterCard("Merfolk card");
private GenericManaCost mana = new GenericManaCost(3);

View file

@ -113,7 +113,7 @@ class AncientHellkiteAbility extends ActivatedAbilityImpl {
}
}
class AncientHellkiteCost extends CostImpl<AncientHellkiteCost> {
class AncientHellkiteCost extends CostImpl {
public AncientHellkiteCost() {
this.text = "Activate this ability only if Ancient Hellkite is attacking";

View file

@ -90,7 +90,7 @@ class LandGrantCondition implements Condition {
}
}
class LandGrantReavealCost extends CostImpl<LandGrantReavealCost> {
class LandGrantReavealCost extends CostImpl {
public LandGrantReavealCost() {
this.text = "reveal your hand";

View file

@ -76,7 +76,7 @@ public class PhyrexianDreadnought extends CardImpl {
}
}
class PhyrexianDreadnoughtSacrificeCost extends CostImpl<PhyrexianDreadnoughtSacrificeCost> {
class PhyrexianDreadnoughtSacrificeCost extends CostImpl {
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent("any number of creatures with total power 12 or greater");

View file

@ -120,7 +120,7 @@ public class RiftElemental extends CardImpl {
}
}
class RemoveCounterFromCardCost extends CostImpl<RemoveCounterFromCardCost> {
class RemoveCounterFromCardCost extends CostImpl {
private TargetCard target;
private String name;

View file

@ -75,7 +75,7 @@ public class GreenhiltTrainee extends CardImpl {
}
}
class GreenhiltTraineeCost extends CostImpl<GreenhiltTraineeCost> {
class GreenhiltTraineeCost extends CostImpl {
public GreenhiltTraineeCost() {
this.text = "Activate this ability only if Greenhilt Trainee's power is 4 or greater";

View file

@ -74,7 +74,7 @@ public class SimianSpiritGuide extends CardImpl {
}
class ExileSourceFromHandCost extends CostImpl<ExileSourceFromHandCost> {
class ExileSourceFromHandCost extends CostImpl {
public ExileSourceFromHandCost() {
this.text = "Exile {this} from your hand";

View file

@ -84,7 +84,7 @@ public class RakdosLordOfRiots extends CardImpl {
}
}
class RakdosLordOfRiotsCost extends CostImpl<RakdosLordOfRiotsCost> {
class RakdosLordOfRiotsCost extends CostImpl {
public RakdosLordOfRiotsCost() {
text = "You can't cast Rakdos, Lord of Riots unless an opponent lost life this turn";

View file

@ -82,7 +82,7 @@ public class TombOfUrami extends CardImpl {
}
class SacrificeAllLandCost extends CostImpl<SacrificeAllLandCost> {
class SacrificeAllLandCost extends CostImpl {
public SacrificeAllLandCost() {
this.text = "Sacrifice all lands you control";

View file

@ -74,7 +74,7 @@ public class BloodshotTrainee extends CardImpl {
}
}
class BloodshotTraineeCost extends CostImpl<BloodshotTraineeCost> {
class BloodshotTraineeCost extends CostImpl {
public BloodshotTraineeCost() {
this.text = "Activate this ability only if Bloodshot Trainee's power is 4 or greater";

View file

@ -84,7 +84,7 @@ public class LeechriddenSwamp extends CardImpl {
}
}
class ControlTwoOrMoreBlackPermanentsCost extends CostImpl<ControlTwoOrMoreBlackPermanentsCost> {
class ControlTwoOrMoreBlackPermanentsCost extends CostImpl {
private static final FilterControlledPermanent filter = new FilterControlledPermanent();

View file

@ -77,7 +77,7 @@ public class EssenceBottle extends CardImpl {
}
}
class EssenceBottleCost extends CostImpl<EssenceBottleCost> {
class EssenceBottleCost extends CostImpl {
private int removedCounters;

View file

@ -82,7 +82,7 @@ public class TortureChamber extends CardImpl {
}
}
class TortureChamberCost extends CostImpl<TortureChamberCost> {
class TortureChamberCost extends CostImpl {
private int removedCounters;

View file

@ -76,7 +76,7 @@ public class WallOfRoots extends CardImpl {
}
}
class WallOfRootsCost extends CostImpl<WallOfRootsCost> {
class WallOfRootsCost extends CostImpl {
public WallOfRootsCost() {
this.text = "Put a -0/-1 counter on {this}";

View file

@ -88,7 +88,7 @@ public class MoltenHydra extends CardImpl {
class RemoveAllCountersSourceCost extends CostImpl<RemoveAllCountersSourceCost> {
class RemoveAllCountersSourceCost extends CostImpl {
private int amount;
private String name;

View file

@ -114,7 +114,7 @@ class PermafrostTrapWatcher extends Watcher {
}
}
class PermafrostTrapAlternativeCost extends AlternativeCostImpl<PermafrostTrapAlternativeCost> {
class PermafrostTrapAlternativeCost extends AlternativeCostImpl {
public PermafrostTrapAlternativeCost() {
super("you may pay {U} rather than pay Permafrost Trap's mana cost");

View file

@ -76,7 +76,7 @@ public class RazorBoomerang extends CardImpl {
}
}
class UnattachCost extends CostImpl<UnattachCost> {
class UnattachCost extends CostImpl {
private UUID attachmentid;

View file

@ -123,7 +123,7 @@ class RefractionTrapWatcher extends Watcher {
}
}
class RefractionTrapAlternativeCost extends AlternativeCostImpl<RefractionTrapAlternativeCost> {
class RefractionTrapAlternativeCost extends AlternativeCostImpl {
public RefractionTrapAlternativeCost() {
super("You may pay {W} rather than pay Refraction Trap's mana cost");

View file

@ -123,7 +123,7 @@ class RicochetTrapWatcher extends Watcher {
}
}
class RicochetTrapAlternativeCost extends AlternativeCostImpl<RicochetTrapAlternativeCost> {
class RicochetTrapAlternativeCost extends AlternativeCostImpl {
public RicochetTrapAlternativeCost() {
super("You may pay {R} rather than pay Ricochet Trap's mana cost");

View file

@ -80,7 +80,7 @@ public class SlingbowTrap extends CardImpl {
}
}
class SlingbowTrapAlternativeCost extends AlternativeCostImpl<SlingbowTrapAlternativeCost> {
class SlingbowTrapAlternativeCost extends AlternativeCostImpl {
public SlingbowTrapAlternativeCost() {
super("you may pay {G} rather than pay {this}'s mana cost");

View file

@ -79,7 +79,7 @@ public class TectonicEdge extends CardImpl {
}
class TectonicEdgeCost extends CostImpl<TectonicEdgeCost> {
class TectonicEdgeCost extends CostImpl {
private static final FilterLandPermanent filter = new FilterLandPermanent();

View file

@ -98,7 +98,7 @@ class ArchiveTrapWatcher extends Watcher {
}
class ArchiveTrapAlternativeCost extends AlternativeCostImpl<ArchiveTrapAlternativeCost> {
class ArchiveTrapAlternativeCost extends AlternativeCostImpl {
public ArchiveTrapAlternativeCost() {
super("you may pay {0} rather than pay Archive Trap's mana cost");

View file

@ -75,7 +75,7 @@ public class ArrowVolleyTrap extends CardImpl {
}
}
class ArrowVolleyTrapAlternativeCost extends AlternativeCostImpl<ArrowVolleyTrapAlternativeCost> {
class ArrowVolleyTrapAlternativeCost extends AlternativeCostImpl {
public ArrowVolleyTrapAlternativeCost() {
super("you may pay {1}{W} rather than pay Arrow Volley Trap's mana cost");

View file

@ -111,7 +111,7 @@ class BalothCageTrapWatcher extends Watcher {
}
}
class BalothCageTrapAlternativeCost extends AlternativeCostImpl<BalothCageTrapAlternativeCost> {
class BalothCageTrapAlternativeCost extends AlternativeCostImpl {
public BalothCageTrapAlternativeCost() {
super("you may pay {1}{G} rather than pay Baloth Cage Trap's mana cost");

View file

@ -117,7 +117,7 @@ class BlazingTorchEvasionEffect extends RestrictionEffect<BlazingTorchEvasionEff
}
}
class BlazingTorchCost extends CostImpl<BlazingTorchCost> {
class BlazingTorchCost extends CostImpl {
public BlazingTorchCost() {
this.text = "Sacrifice Blazing Torch";

View file

@ -113,7 +113,7 @@ class CobraTrapWatcher extends Watcher {
}
}
class CobraTrapAlternativeCost extends AlternativeCostImpl<CobraTrapAlternativeCost> {
class CobraTrapAlternativeCost extends AlternativeCostImpl {
public CobraTrapAlternativeCost() {
super("you may pay {G} rather than pay Cobra Trap's mana cost");

View file

@ -70,7 +70,7 @@ public class FeastOfBlood extends CardImpl {
}
}
class FeastOfBloodCost extends CostImpl<FeastOfBloodCost> {
class FeastOfBloodCost extends CostImpl {
private static final FilterControlledCreaturePermanent filter = new FilterControlledCreaturePermanent();

View file

@ -113,7 +113,7 @@ class ControllerDamagedByCreatureWatcher extends Watcher {
}
}
class InfernoTrapAlternativeCost extends AlternativeCostImpl<InfernoTrapAlternativeCost> {
class InfernoTrapAlternativeCost extends AlternativeCostImpl {
public InfernoTrapAlternativeCost() {
super("you may pay {R} rather than pay Inferno Trap's mana cost");

View file

@ -135,7 +135,7 @@ class LavaballTrapWatcher extends Watcher {
}
}
class LavaballTrapAlternativeCost extends AlternativeCostImpl<LavaballTrapAlternativeCost> {
class LavaballTrapAlternativeCost extends AlternativeCostImpl {
public LavaballTrapAlternativeCost() {
super("you may pay {3}{R}{R} rather than pay Lavaball Trap's mana cost");

View file

@ -78,7 +78,7 @@ public class LethargyTrap extends CardImpl {
}
}
class LethargyTrapAlternativeCost extends AlternativeCostImpl<LethargyTrapAlternativeCost> {
class LethargyTrapAlternativeCost extends AlternativeCostImpl {
public LethargyTrapAlternativeCost() {
super("you may pay {U} rather than pay Lethargy Trap's mana cost");

View file

@ -106,7 +106,7 @@ class LuminarchAscensionTriggeredAbility extends TriggeredAbilityImpl {
}
}
class SourceHasCountersCost extends CostImpl<SourceHasCountersCost> {
class SourceHasCountersCost extends CostImpl {
private int counters;
private CounterType counterType;

View file

@ -127,7 +127,7 @@ class MindbreakTrapWatcher extends Watcher {
}
class MindbreakTrapAlternativeCost extends AlternativeCostImpl<MindbreakTrapAlternativeCost> {
class MindbreakTrapAlternativeCost extends AlternativeCostImpl {
public MindbreakTrapAlternativeCost() {
super("you may pay {0} rather than pay Mindbreak Trap's mana cost");

View file

@ -76,7 +76,7 @@ public class NeedlebiteTrap extends CardImpl {
}
}
class NeedlebiteTrapAlternativeCost extends AlternativeCostImpl<NeedlebiteTrapAlternativeCost> {
class NeedlebiteTrapAlternativeCost extends AlternativeCostImpl {
public NeedlebiteTrapAlternativeCost() {
super("If an opponent gained life this turn, you may pay {B} rather than pay {this}'s mana cost");

View file

@ -79,7 +79,7 @@ public class PitfallTrap extends CardImpl {
}
}
class PitfallTrapAlternativeCost extends AlternativeCostImpl<PitfallTrapAlternativeCost> {
class PitfallTrapAlternativeCost extends AlternativeCostImpl {
public PitfallTrapAlternativeCost() {
super("you may pay {W} rather than pay Pitfall Trap's mana cost");

View file

@ -78,7 +78,7 @@ public class RavenousTrap extends CardImpl {
}
}
class RavenousTrapAlternativeCost extends AlternativeCostImpl<RavenousTrapAlternativeCost> {
class RavenousTrapAlternativeCost extends AlternativeCostImpl {
public RavenousTrapAlternativeCost() {
super("If an opponent had three or more cards put into his or her graveyard from anywhere this turn, you may pay {0} rather than pay Ravenous Trap's mana cost");

View file

@ -141,7 +141,7 @@ class CardsDrawnOpponentWatcher extends Watcher {
}
}
class RuneflareTrapAlternativeCost extends AlternativeCostImpl<RuneflareTrapAlternativeCost> {
class RuneflareTrapAlternativeCost extends AlternativeCostImpl {
public RuneflareTrapAlternativeCost() {
super("you may pay {R} rather than pay Runeflare Trap's mana cost");

View file

@ -126,7 +126,7 @@ class SummoningTrapWatcher extends Watcher {
}
}
class SummoningTrapAlternativeCost extends AlternativeCostImpl<SummoningTrapAlternativeCost> {
class SummoningTrapAlternativeCost extends AlternativeCostImpl {
public SummoningTrapAlternativeCost() {
super("you may pay {0} rather than pay Summoning Trap's mana cost");

View file

@ -132,7 +132,7 @@ class WhiplashTrapWatcher extends Watcher {
}
}
class WhiplashAlternativeCost extends AlternativeCostImpl<WhiplashAlternativeCost> {
class WhiplashAlternativeCost extends AlternativeCostImpl {
public WhiplashAlternativeCost() {
super("you may pay {U} rather than pay Whiplash Trap's mana cost");