forked from External/mage
added timeout on sideboard + show construct and/or sideboard on reconnect
This commit is contained in:
parent
a4ed12b47b
commit
ea44fc973f
18 changed files with 161 additions and 53 deletions
|
|
@ -36,7 +36,6 @@ import mage.abilities.ActivatedAbility;
|
|||
import mage.abilities.TriggeredAbilities;
|
||||
import mage.cards.Card;
|
||||
import mage.cards.Cards;
|
||||
import mage.cards.decks.Deck;
|
||||
import mage.game.permanent.Permanent;
|
||||
|
||||
/**
|
||||
|
|
@ -61,7 +60,6 @@ public class PlayerQueryEvent extends EventObject implements ExternalEvent, Seri
|
|||
private boolean required;
|
||||
private int min;
|
||||
private int max;
|
||||
private Deck deck;
|
||||
private Map<String, Serializable> options;
|
||||
private Map<UUID, String> modes;
|
||||
|
||||
|
|
@ -93,12 +91,11 @@ public class PlayerQueryEvent extends EventObject implements ExternalEvent, Seri
|
|||
this.max = time;
|
||||
}
|
||||
|
||||
private PlayerQueryEvent(UUID playerId, String message, QueryType queryType, Deck deck, int time) {
|
||||
private PlayerQueryEvent(UUID playerId, String message, QueryType queryType, int time) {
|
||||
super(playerId);
|
||||
this.queryType = queryType;
|
||||
this.message = message;
|
||||
this.playerId = playerId;
|
||||
this.deck = deck;
|
||||
this.max = time;
|
||||
}
|
||||
|
||||
|
|
@ -179,8 +176,8 @@ public class PlayerQueryEvent extends EventObject implements ExternalEvent, Seri
|
|||
return new PlayerQueryEvent(playerId, message, booster, QueryType.PICK_CARD, time);
|
||||
}
|
||||
|
||||
public static PlayerQueryEvent construct(UUID playerId, String message, Deck deck, int time) {
|
||||
return new PlayerQueryEvent(playerId, message, QueryType.CONSTRUCT, deck, time);
|
||||
public static PlayerQueryEvent construct(UUID playerId, String message, int time) {
|
||||
return new PlayerQueryEvent(playerId, message, QueryType.CONSTRUCT, time);
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -232,10 +229,6 @@ public class PlayerQueryEvent extends EventObject implements ExternalEvent, Seri
|
|||
return max;
|
||||
}
|
||||
|
||||
public Deck getDeck() {
|
||||
return deck;
|
||||
}
|
||||
|
||||
public Map<String, Serializable> getOptions() {
|
||||
return options;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue