Getting test class set up
Post MTG Forge Related Programming Questions Here
	Moderators: timmermac, Agetian, friarsol, Blacksmith, KrazyTheFox, CCGHQ Admins
			1 post
			 • Page 1 of 1
		
	
Getting test class set up
 by mcrawford620 » 25 Jun 2012, 19:50
by mcrawford620 » 25 Jun 2012, 19:50 
I was trying to set up a simple test class to "watch" the AI pick a card from a booster pack. Not really a test, but just a way to get an AI pick from a booster without loading up the whole actual GUI. But I keep getting stuck on trying to load the card database. Here's what I've tried:
			
		- Code: Select all
- final CardFactoryInterface cf = AllZone.getCardFactory(); // copied from RunTest.java
 final BoosterGenerator pack = new BoosterGenerator(CardPrinted.Predicates.printedInSets("M12"));
 List<CardPrinted> cards = pack.getBoosterPack(10, 3, 1, 0, 0, 0, 0, 0, 1);
- Code: Select all
- final FProgressBar barProgress = SplashFrame.PROGRESS_BAR;
- mcrawford620
- Posts: 112
- Joined: 25 Jun 2012, 16:59
- Has thanked: 55 times
- Been thanked: 25 times
			1 post
			 • Page 1 of 1
		
	
Who is online
Users browsing this forum: No registered users and 19 guests
