mirror of
https://github.com/magefree/mage.git
synced 2025-12-27 22:12:03 -08:00
send list of targets to client
This commit is contained in:
parent
36f512de71
commit
53d7e5623b
25 changed files with 92 additions and 103 deletions
|
|
@ -29,6 +29,8 @@
|
|||
package mage.view;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Set;
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
*
|
||||
|
|
@ -42,6 +44,7 @@ public class GameClientMessage implements Serializable {
|
|||
private AbilityPickerView abilityView;
|
||||
private boolean flag;
|
||||
private String[] strings;
|
||||
private Set<UUID> targets;
|
||||
private int min;
|
||||
private int max;
|
||||
|
||||
|
|
@ -54,10 +57,11 @@ public class GameClientMessage implements Serializable {
|
|||
this.message = message;
|
||||
}
|
||||
|
||||
public GameClientMessage(GameView gameView, String question, CardsView cardView, boolean required) {
|
||||
public GameClientMessage(GameView gameView, String question, CardsView cardView, Set<UUID> targets, boolean required) {
|
||||
this.gameView = gameView;
|
||||
this.message = question;
|
||||
this.cardsView = cardView;
|
||||
this.targets = targets;
|
||||
this.flag = required;
|
||||
}
|
||||
|
||||
|
|
@ -101,6 +105,10 @@ public class GameClientMessage implements Serializable {
|
|||
return strings;
|
||||
}
|
||||
|
||||
public Set<UUID> getTargets() {
|
||||
return targets;
|
||||
}
|
||||
|
||||
public int getMin() {
|
||||
return min;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue