Erwan
- Removed 4000 cards limitation - URGENT FIX NEEDED: Test Northern_paladin2.txt fails :(
This commit is contained in:
@@ -53,7 +53,8 @@ class MTGAllCards {
|
||||
|
||||
TexturesCache * mCache;
|
||||
MTGCard * _(int i);
|
||||
MTGCard * collection[Constants::TOTAL_NUMBER_OF_CARDS];
|
||||
vector<MTGCard *> collection;
|
||||
//collection[Constants::TOTAL_NUMBER_OF_CARDS];
|
||||
MTGAllCards();
|
||||
~MTGAllCards();
|
||||
MTGAllCards(TexturesCache * cache);
|
||||
|
||||
@@ -10,9 +10,6 @@ class Constants
|
||||
public:
|
||||
enum
|
||||
{
|
||||
TOTAL_NUMBER_OF_CARDS = 4000,
|
||||
|
||||
|
||||
MTG_COLOR_ARTIFACT = 0,
|
||||
MTG_COLOR_GREEN = 1,
|
||||
MTG_COLOR_BLUE = 2,
|
||||
|
||||
@@ -8,19 +8,11 @@
|
||||
|
||||
class MTGAllCards;
|
||||
|
||||
class Price{
|
||||
public:
|
||||
int cardid;
|
||||
int price;
|
||||
Price(int _cardid, int _price);
|
||||
};
|
||||
|
||||
class PriceList{
|
||||
private:
|
||||
MTGAllCards * collection;
|
||||
string filename;
|
||||
Price * prices[Constants::TOTAL_NUMBER_OF_CARDS];
|
||||
int nbprices;
|
||||
map<int,int> prices;
|
||||
public:
|
||||
PriceList(const char * file, MTGAllCards * _collection);
|
||||
~PriceList();
|
||||
|
||||
Reference in New Issue
Block a user