コード例 #1
0
 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();
 }
コード例 #2
0
 public RemoveVariableCountersSourceCost(Counter counter, int minimalCountersToPay) {
   this.minimalCountersToPay = minimalCountersToPay;
   this.name = counter.getName();
   this.text = "Remove X " + name + " counter from {this}";
 }