send list of targets to client

This commit is contained in:
BetaSteward 2010-12-02 04:39:18 +00:00
parent 36f512de71
commit 53d7e5623b
25 changed files with 92 additions and 103 deletions

View file

@ -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;
}