forked from External/mage
other: added getMultiAmount testable dialogs in cheat menu (part of #13638)
This commit is contained in:
parent
ee1dc74b90
commit
1112c9516d
6 changed files with 145 additions and 3 deletions
|
|
@ -5,9 +5,10 @@ import java.io.Serializable;
|
|||
/**
|
||||
* A helper class for facilitating the multi-choose dialog
|
||||
*
|
||||
* @author alexander-novo
|
||||
* @author alexander-novo, JayDi85
|
||||
*/
|
||||
public class MultiAmountMessage implements Serializable {
|
||||
public class MultiAmountMessage implements Serializable, Copyable<MultiAmountMessage> {
|
||||
|
||||
public String message;
|
||||
public int min;
|
||||
public int max;
|
||||
|
|
@ -24,8 +25,20 @@ public class MultiAmountMessage implements Serializable {
|
|||
this.defaultValue = defaultValue;
|
||||
}
|
||||
|
||||
private MultiAmountMessage(final MultiAmountMessage mes) {
|
||||
this.message = mes.message;
|
||||
this.min = mes.min;
|
||||
this.max = mes.max;
|
||||
this.defaultValue = mes.defaultValue;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return String.format("%s - from %d to %d - default %d", message, min, max, defaultValue);
|
||||
}
|
||||
|
||||
@Override
|
||||
public MultiAmountMessage copy() {
|
||||
return new MultiAmountMessage(this);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue