[refactor] removed BoostCounter implementations

This commit is contained in:
North 2014-05-31 18:43:05 +03:00
parent 44785267ec
commit ca1af753eb
12 changed files with 31 additions and 170 deletions

View file

@ -32,13 +32,17 @@ package mage.counters;
*
* @author BetaSteward_at_googlemail.com
*/
public abstract class BoostCounter extends Counter {
public class BoostCounter extends Counter {
protected int power;
protected int toughness;
public BoostCounter(int power, int toughness) {
super(String.format("%1$+d/%2$+d", power, toughness));
this(power, toughness, 1);
}
public BoostCounter(int power, int toughness, int count) {
super(String.format("%1$+d/%2$+d", power, toughness), count);
this.power = power;
this.toughness = toughness;
}
@ -57,4 +61,8 @@ public abstract class BoostCounter extends Counter {
return toughness;
}
@Override
public BoostCounter copy() {
return new BoostCounter(this);
}
}