gameType is now a Enum,

Deckeditors no longer save all decks on close (there may remain minor bugs)
Deckeditors have mostly been cleaned of usage of global variables
OldGuiNewGame updates deck comboboxes properly
Download deck from tcgplayer feature temporary removed
cleaned up some warnings
This commit is contained in:
Maxmtg
2011-09-09 11:08:29 +00:00
parent dc66b2556c
commit 2ecc716b83
23 changed files with 474 additions and 1190 deletions

View File

@@ -1,6 +1,7 @@
package forge;
import forge.deck.Deck;
import forge.game.GameType;
import forge.game.limited.BoosterDraft_1;
import forge.gui.deckeditor.DeckEditorDraft;
@@ -20,8 +21,8 @@ public class GuiBoosterDraftTest {
*/
@Test(groups = {"UnitTest", "fast"})
public void GuiBoosterDraftTest1() {
Constant.Runtime.GameType[0] = Constant.GameType.Draft;
Constant.Runtime.HumanDeck[0] = new Deck(Constant.GameType.Sealed);
Constant.Runtime.gameType = GameType.Draft;
Constant.Runtime.HumanDeck[0] = new Deck(GameType.Sealed);
DeckEditorDraft g = new DeckEditorDraft();
g.showGui(new BoosterDraft_1());