forked from External/mage
[READY FOR REVIEW] Implement a "multi-amount" dialog (#7528)
* Implemented chooseTargetAmount and new GUI dialog (distribute damage, distribute mana) * Added tests and AI support; * Test framework: added aliases support in TargetAmount dialogs; Co-authored-by: Oleg Agafonov <jaydi85@gmail.com>
This commit is contained in:
parent
042aa61ad4
commit
600cac6fc7
35 changed files with 1209 additions and 232 deletions
|
|
@ -2515,6 +2515,14 @@ public abstract class GameImpl implements Game, Serializable {
|
|||
playerQueryEventSource.amount(playerId, message, min, max);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fireGetMultiAmountEvent(UUID playerId, List<String> messages, int min, int max, Map<String, Serializable> options) {
|
||||
if (simulation) {
|
||||
return;
|
||||
}
|
||||
playerQueryEventSource.multiAmount(playerId, messages, min, max, options);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void fireChooseChoiceEvent(UUID playerId, Choice choice) {
|
||||
if (simulation) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue