forked from External/mage
* Added button popup menu to be able to automatically answer ability related "Yes" / "No" requests (related to #328).
This commit is contained in:
parent
faac815ed2
commit
758f56792e
17 changed files with 555 additions and 184 deletions
|
|
@ -32,6 +32,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.ActivatedAbility;
|
||||
import mage.abilities.TriggeredAbility;
|
||||
import mage.cards.Card;
|
||||
|
|
@ -58,8 +59,8 @@ public class PlayerQueryEventSource implements EventSource<PlayerQueryEvent>, Se
|
|||
dispatcher.removeAllListener();
|
||||
}
|
||||
|
||||
public void ask(UUID playerId, String message) {
|
||||
dispatcher.fireEvent(PlayerQueryEvent.askEvent(playerId, message));
|
||||
public void ask(UUID playerId, String message, Ability source, Map<String, Serializable> options) {
|
||||
dispatcher.fireEvent(PlayerQueryEvent.askEvent(playerId, message, source, options));
|
||||
}
|
||||
|
||||
public void select(UUID playerId, String message) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue