- _cards.dat parsing error fixes on erroneous files
- replaced cards array with a vector for MTGGameZones
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-03-25 13:53:19 +00:00
parent 579c9e7d6f
commit e8d32b2c6d
4 changed files with 19 additions and 15 deletions

View File

@@ -21,7 +21,7 @@ class GameApp;
class MTGCard;
#define MAX_SETS 30
#define MAX_SETS 50

View File

@@ -19,7 +19,7 @@ class MTGGameZone {
public:
Player * owner;
//Both cards and cardsMap contain the cards of a zone. The long term objective is to get rid of the array
MTGCardInstance * cards[MTG_MAX_PLAYER_CARDS];
vector<MTGCardInstance *> cards; //[MTG_MAX_PLAYER_CARDS];
map<MTGCardInstance *,int> cardsMap;
int nb_cards;
MTGGameZone();