this is also from inputs

This commit is contained in:
Maxmtg
2013-05-24 22:31:59 +00:00
parent 0b8b8c043d
commit 3c78cb77b2

View File

@@ -66,9 +66,11 @@ public class CardFactoryCreatures {
*/ */
public static final class InputSelectCardsForDreadnought extends InputSelectCards { public static final class InputSelectCardsForDreadnought extends InputSelectCards {
private static final long serialVersionUID = 2698036349873486664L; private static final long serialVersionUID = 2698036349873486664L;
protected final Player player;
public InputSelectCardsForDreadnought(int min, int max) { public InputSelectCardsForDreadnought(Player p, int min, int max) {
super(min, max); super(min, max);
player = p;
} }
@Override @Override
@@ -342,7 +344,7 @@ public class CardFactoryCreatures {
public void resolve() { public void resolve() {
final GameState game = player.getGame(); final GameState game = player.getGame();
if (player.isHuman()) { if (player.isHuman()) {
final InputSelectCards target = new InputSelectCardsForDreadnought(0, Integer.MAX_VALUE); // Input final InputSelectCards target = new InputSelectCardsForDreadnought(player, 0, Integer.MAX_VALUE); // Input
String toDisplay = cardName + " - Select any number of creatures to sacrifice.\n" + String toDisplay = cardName + " - Select any number of creatures to sacrifice.\n" +
"Currently, (%d) selected with a total power of: %d\n\n" + "Click OK when Done."; "Currently, (%d) selected with a total power of: %d\n\n" + "Click OK when Done.";
target.setMessage(toDisplay); target.setMessage(toDisplay);