It is currently 29 Apr 2024, 09:19
   
Text Size

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

Postby 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

Code: Select all
        out.addAll(getCommon(nCommon));
        out.addAll(getcommon(nUncommon));
        out.addAll(getCommon(nRare));
to

Code: Select all
        out.addAll(getCommon(nCommon));
        out.addAll(getUncommon(nUncommon));
        out.addAll(getRare(nRare));
This is the new code for QuestData_BoosterPack.getNewCards()
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()
I submitted this change awhile ago and somehow it got changed back. I think the compile .class file are correct but the Java files aren't for some reason. I recompiled everything so I could set the date on the version that I packaged up for my Google Project page, which includes Chris's updated quest files.
mtgrares
DEVELOPER
 
Posts: 1352
Joined: 08 Sep 2008, 22:10
Has thanked: 3 times
Been thanked: 12 times

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 92 guests


Who is online

In total there are 92 users online :: 0 registered, 0 hidden and 92 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 92 guests

Login Form