Added monocolored generated decks.

Will need an improved deck generator.
master
ubeefx 2011-03-10 21:24:36 +00:00
parent 70d80d3a9b
commit 8dbd31c4cf
2 changed files with 9 additions and 0 deletions

View File

@ -16,6 +16,7 @@ public class TournamentConfig {
private static final String ANY_THREE="***";
private static final String ANY_TWO="**";
private static final String ANY_ONE="*";
private static final String CONFIG_FILENAME="tournament.cfg";
private static final String AVATAR="avatar";
@ -106,6 +107,8 @@ public class TournamentConfig {
return new MagicPlayerProfile(MagicColor.getRandomColors(3));
} else if (ANY_TWO.equals(colorText)) {
return new MagicPlayerProfile(MagicColor.getRandomColors(2));
} else if (ANY_ONE.equals(colorText)) {
return new MagicPlayerProfile(MagicColor.getRandomColors(1));
}
return new MagicPlayerProfile(colorText);
}

View File

@ -245,6 +245,12 @@ public class TournamentDialog extends JDialog implements ActionListener {
model.addElement("gw");
model.addElement("rw");
model.addElement("**");
model.addElement("b");
model.addElement("u");
model.addElement("g");
model.addElement("r");
model.addElement("w");
model.addElement("*");
setModel(model);
setSelectedItem(colors);
this.setFocusable(false);