small update to QuestData_BoosterPack
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
small update to QuestData_BoosterPack
by mtgrares » 19 Sep 2009, 20:38
I recompiled everything from scratch (I deleted all .class files and did "javac *.java") and QuestData_BoosterPack.getNewCards() gave me some odd error message about "Error with ArrayList<?>". So I converted the ArrayList<?> to Arraylist<Object>.
I also change the lines
I also change the lines
- Code: Select all
out.addAll(getCommon(nCommon));
out.addAll(getcommon(nUncommon));
out.addAll(getCommon(nRare));
- Code: Select all
out.addAll(getCommon(nCommon));
out.addAll(getUncommon(nUncommon));
out.addAll(getRare(nRare));
- Code: Select all
private ArrayList<Object> getNewCards(int nCommon, int nUncommon, int nRare) {
ArrayList<Object> out = new ArrayList();
out.addAll(getCommon(nCommon));
out.addAll(getUncommon(nUncommon));
out.addAll(getRare(nRare));
return out;
}//getNewCards()
- mtgrares
- DEVELOPER
- Posts: 1352
- Joined: 08 Sep 2008, 22:10
- Has thanked: 3 times
- Been thanked: 12 times
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 92 guests