[refactor] removed generic from Counter

This commit is contained in:
North 2014-05-31 17:11:11 +03:00
parent 5870b0ed7d
commit 545e4298b7
53 changed files with 55 additions and 56 deletions

View file

@ -86,7 +86,7 @@ public class Contagion extends CardImpl<Contagion> {
}
}
class ContagionCounter extends BoostCounter<ContagionCounter> {
class ContagionCounter extends BoostCounter {
public ContagionCounter(int count) {
super(-2, -1);

View file

@ -141,7 +141,7 @@ class ArbiterOfTheIdealEffect extends OneShotEffect<ArbiterOfTheIdealEffect> {
}
}
class ManifestationCounter extends Counter<ManifestationCounter> {
class ManifestationCounter extends Counter {
public ManifestationCounter() {
super("manifestation");

View file

@ -87,7 +87,7 @@ public class SenseiGoldenTail extends CardImpl<SenseiGoldenTail> {
}
class TrainingCounter extends Counter<TrainingCounter> {
class TrainingCounter extends Counter {
public TrainingCounter() {
this(1);

View file

@ -112,7 +112,7 @@ class AssembleTheLegionEffect extends OneShotEffect<AssembleTheLegionEffect> {
}
}
class MusterCounter extends Counter<MusterCounter> {
class MusterCounter extends Counter {
public MusterCounter() {
super("Muster");

View file

@ -107,7 +107,7 @@ class WallOfRootsCost extends CostImpl<WallOfRootsCost> {
}
}
class WallOfRootsCounter extends BoostCounter<WallOfRootsCounter> {
class WallOfRootsCounter extends BoostCounter {
public WallOfRootsCounter() {
super(0, -1);

View file

@ -72,7 +72,7 @@ public class Smokestack extends CardImpl<Smokestack> {
}
}
class SootCounter extends Counter<SootCounter> {
class SootCounter extends Counter {
public SootCounter() {
super("soot");

View file

@ -32,7 +32,7 @@ package mage.counters;
*
* @author BetaSteward_at_googlemail.com
*/
public abstract class BoostCounter<T extends BoostCounter<T>> extends Counter<T> {
public abstract class BoostCounter extends Counter {
protected int power;
protected int toughness;

View file

@ -33,9 +33,8 @@ import java.io.Serializable;
/**
*
* @author BetaSteward_at_googlemail.com
* @param <T>
*/
public class Counter<T extends Counter<T>> implements Serializable {
public class Counter implements Serializable {
protected String name;
protected int count;
@ -86,7 +85,7 @@ public class Counter<T extends Counter<T>> implements Serializable {
return count;
}
public T copy() {
return (T)new Counter(this);
public Counter copy() {
return new Counter(this);
}
}

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
*
* @author Plopman
*/
public class AgeCounter extends Counter<AgeCounter> {
public class AgeCounter extends Counter {
public AgeCounter() {
super("age");

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
*
* @author LevelX
*/
public class AimCounter extends Counter<AimCounter> {
public class AimCounter extends Counter {
public AimCounter() {
super("aim");

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
*
* @author nantuko
*/
public class ArrowheadCounter extends Counter<ArrowheadCounter> {
public class ArrowheadCounter extends Counter {
public ArrowheadCounter() {
super("arrowhead");

View file

@ -2,7 +2,7 @@ package mage.counters.common;
import mage.counters.Counter;
public class AwakeningCounter extends Counter<AwakeningCounter> {
public class AwakeningCounter extends Counter {
public AwakeningCounter() {
this(1);
}

View file

@ -2,7 +2,7 @@ package mage.counters.common;
import mage.counters.Counter;
public class BlazeCounter extends Counter<BlazeCounter> {
public class BlazeCounter extends Counter {
public BlazeCounter() {
this(1);
}

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
*
* @author jeffwadsworth
*/
public class BriberyCounter extends Counter<BriberyCounter> {
public class BriberyCounter extends Counter {
public BriberyCounter() {
super("bribery");

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
*
* @author nantuko
*/
public class ChargeCounter extends Counter<ChargeCounter> {
public class ChargeCounter extends Counter {
public ChargeCounter() {
super("Charge");

View file

@ -12,7 +12,7 @@ import mage.counters.Counter;
*
* @author Plopman
*/
public class DepletionCounter extends Counter<DepletionCounter> {
public class DepletionCounter extends Counter {
public DepletionCounter() {
super("Depletion");

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
*
* @author noxx
*/
public class DespairCounter extends Counter<DespairCounter> {
public class DespairCounter extends Counter {
public DespairCounter() {
super("Despair");

View file

@ -7,7 +7,7 @@ import mage.counters.Counter;
*
* @author Loki
*/
public class DevotionCounter extends Counter<DevotionCounter> {
public class DevotionCounter extends Counter {
public DevotionCounter() {
super("Devotion");

View file

@ -7,7 +7,7 @@ import mage.counters.Counter;
*
* @author Loki
*/
public class DivinityCounter extends Counter<DivinityCounter> {
public class DivinityCounter extends Counter {
public DivinityCounter() {
super("Divinity");

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
* @author LevelX2
*/
public class DoomCounter extends Counter<DoomCounter> {
public class DoomCounter extends Counter {
public DoomCounter() {
this(1);

View file

@ -33,7 +33,7 @@ import mage.counters.Counter;
*
* @author North
*/
public class ElixirCounter extends Counter<ElixirCounter> {
public class ElixirCounter extends Counter {
public ElixirCounter() {
super("Elixir");

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
*
* @author nantuko
*/
public class EonCounter extends Counter<EonCounter> {
public class EonCounter extends Counter {
public EonCounter() {
super("Eon");

View file

@ -33,7 +33,7 @@ import mage.counters.Counter;
*
* @author North
*/
public class EyeballCounter extends Counter<EyeballCounter> {
public class EyeballCounter extends Counter {
public EyeballCounter() {
super("Eyeball");

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
*
* @author nantuko
*/
public class FadeCounter extends Counter<FadeCounter> {
public class FadeCounter extends Counter {
public FadeCounter() {
super("Fade");

View file

@ -7,7 +7,7 @@ import mage.counters.Counter;
*
* @author nantuko
*/
public class FateCounter extends Counter<FateCounter> {
public class FateCounter extends Counter {
public FateCounter() {
super("Fate");

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
*
* @author nantuko
*/
public class FeatherCounter extends Counter<FeatherCounter> {
public class FeatherCounter extends Counter {
public FeatherCounter() {
super("Feather");

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
*
* @author LevelX2
*/
public class FuseCounter extends Counter<FuseCounter> {
public class FuseCounter extends Counter {
public FuseCounter() {
super("fuse");

View file

@ -6,7 +6,7 @@ import mage.counters.Counter;
* Hatchling counter
* @author Loki
*/
public class HatchlingCounter extends Counter<HatchlingCounter> {
public class HatchlingCounter extends Counter {
public HatchlingCounter() {
super("Hatchling");
this.count = 1;

View file

@ -5,7 +5,7 @@ import mage.counters.Counter;
/**
* @author Loki
*/
public class HoofprintCounter extends Counter<HoofprintCounter> {
public class HoofprintCounter extends Counter {
public HoofprintCounter() {
super("Hoofprint");

View file

@ -33,7 +33,7 @@ import mage.counters.Counter;
*
* @author Plopman
*/
public class IceCounter extends Counter<IceCounter> {
public class IceCounter extends Counter {
public IceCounter() {
super("Ice");

View file

@ -7,7 +7,7 @@ import mage.counters.Counter;
*
* @author Loki
*/
public class KiCounter extends Counter<KiCounter> {
public class KiCounter extends Counter {
public KiCounter() {
super("Ki");

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
*
* @author nantuko
*/
public class LevelCounter extends Counter<LevelCounter> {
public class LevelCounter extends Counter {
public LevelCounter() {
super("Level");

View file

@ -5,7 +5,7 @@ import mage.counters.Counter;
/**
* Lore counter
*/
public class LoreCounter extends Counter<LoreCounter> {
public class LoreCounter extends Counter {
public LoreCounter() {
super("Lore");
this.count = 1;

View file

@ -41,7 +41,7 @@ import mage.counters.Counter;
*
* @author nantuko
*/
public class LoyaltyCounter extends Counter<LoyaltyCounter> {
public class LoyaltyCounter extends Counter {
public LoyaltyCounter() {
super("Loyalty");

View file

@ -33,7 +33,7 @@ import mage.counters.Counter;
*
* @author jeff
*/
public class MiningCounter extends Counter<MiningCounter> {
public class MiningCounter extends Counter {
public MiningCounter() {
super("mining");

View file

@ -34,7 +34,7 @@ import mage.counters.BoostCounter;
*
* @author BetaSteward_at_googlemail.com
*/
public class MinusOneCounter extends BoostCounter<MinusOneCounter> {
public class MinusOneCounter extends BoostCounter {
public MinusOneCounter() {
super(-1, -1);

View file

@ -33,7 +33,7 @@ import mage.counters.Counter;
*
* @author Backfir3
*/
public class PageCounter extends Counter<PageCounter> {
public class PageCounter extends Counter {
public PageCounter() {
super("Page");

View file

@ -33,7 +33,7 @@ import mage.counters.Counter;
*
* @author North
*/
public class PainCounter extends Counter<PainCounter> {
public class PainCounter extends Counter {
public PainCounter() {
super("Pain");

View file

@ -33,7 +33,7 @@ import mage.counters.Counter;
*
* @author jeff
*/
public class PetrificationCounter extends Counter<PetrificationCounter> {
public class PetrificationCounter extends Counter {
public PetrificationCounter() {
super("petrification");

View file

@ -34,7 +34,7 @@ import mage.counters.Counter;
* @author LevelX2
*/
public class PlagueCounter extends Counter<PlagueCounter> {
public class PlagueCounter extends Counter {
public PlagueCounter() {
super("plague");

View file

@ -34,7 +34,7 @@ import mage.counters.BoostCounter;
*
* @author BetaSteward_at_googlemail.com
*/
public class PlusOneCounter extends BoostCounter<PlusOneCounter> {
public class PlusOneCounter extends BoostCounter {
public PlusOneCounter() {
this(1);

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
*
* @author nantuko
*/
public class PoisonCounter extends Counter<PoisonCounter> {
public class PoisonCounter extends Counter {
public PoisonCounter() {
super("Poison");

View file

@ -33,7 +33,7 @@ import mage.counters.Counter;
*
* @author jeff
*/
public class PressureCounter extends Counter<PressureCounter> {
public class PressureCounter extends Counter {
public PressureCounter() {
super("pressure");

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
*
* @author nantuko
*/
public class QuestCounter extends Counter<QuestCounter> {
public class QuestCounter extends Counter {
public QuestCounter() {
super("Quest");

View file

@ -33,7 +33,7 @@ import mage.counters.Counter;
*
* @author BetaSteward_at_googlemail.com
*/
public class SlimeCounter extends Counter<SlimeCounter> {
public class SlimeCounter extends Counter {
public SlimeCounter() {
this(1);

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
*
* @author Loki
*/
public class SporeCounter extends Counter<SporeCounter> {
public class SporeCounter extends Counter {
public SporeCounter() {
super("Spore");

View file

@ -34,7 +34,7 @@ import mage.counters.Counter;
*
* @author LevelX2
*/
public class StorageCounter extends Counter<SlimeCounter> {
public class StorageCounter extends Counter {
public StorageCounter() {
this(1);

View file

@ -33,7 +33,7 @@ import mage.counters.Counter;
*
* @author BetaSteward_at_googlemail.com
*/
public class StudyCounter extends Counter<StudyCounter> {
public class StudyCounter extends Counter {
public StudyCounter() {
this(1);

View file

@ -33,7 +33,7 @@ import mage.counters.Counter;
*
* @author LevelX2
*/
public class TheftCounter extends Counter<TheftCounter> {
public class TheftCounter extends Counter {
public TheftCounter() {
super("Theft");

View file

@ -35,7 +35,7 @@ import mage.counters.Counter;
*
* @author nantuko
*/
public class TimeCounter extends Counter<TimeCounter> {
public class TimeCounter extends Counter {
public TimeCounter() {
super("Time");

View file

@ -33,7 +33,7 @@ import mage.counters.Counter;
*
* @author jeffwadsworth
*/
public class TowerCounter extends Counter<TowerCounter> {
public class TowerCounter extends Counter {
public TowerCounter() {
super("Tower");

View file

@ -34,7 +34,7 @@ import mage.counters.Counter;
* @author LevelX2
*/
public class VileCounter extends Counter<VileCounter> {
public class VileCounter extends Counter {
public VileCounter() {
super("vile");

View file

@ -7,7 +7,7 @@ import mage.counters.Counter;
*
* @author nantuko
*/
public class WishCounter extends Counter<WishCounter> {
public class WishCounter extends Counter {
public WishCounter() {
super("Wish");