public RemoveCountersSourceCost(Counter counter) { this.amount = counter.getCount(); this.name = counter.getName(); this.text = new StringBuilder("Remove ") .append((amount == 1 ? "a" : CardUtil.numberToText(amount))) .append(" ") .append(name) .append(" counter") .append((amount != 1 ? "s" : "")) .append(" from {this}") .toString(); }
public RemoveVariableCountersSourceCost(Counter counter, int minimalCountersToPay) { this.minimalCountersToPay = minimalCountersToPay; this.name = counter.getName(); this.text = "Remove X " + name + " counter from {this}"; }