forked from External/mage
[refactor] removed BoostCounter implementations
This commit is contained in:
parent
44785267ec
commit
ca1af753eb
12 changed files with 31 additions and 170 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue