Erwan
-Fixed bug with fountain of youth -New alternate format for decks
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
#include "../include/Player.h"
|
||||
#include "../include/GameOptions.h"
|
||||
#include "../include/WEvent.h"
|
||||
#include "../include/MTGDeck.h"
|
||||
|
||||
#if defined (WIN32) || defined (LINUX)
|
||||
#include <time.h>
|
||||
@@ -27,6 +28,23 @@ MTGPlayerCards::MTGPlayerCards(MTGAllCards * _collection, int * idList, int idLi
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
MTGPlayerCards::MTGPlayerCards(MTGAllCards * _collection,MTGDeck * deck){
|
||||
init();
|
||||
collection = _collection;
|
||||
for (int i=0; i<deck->totalCards(); i++){
|
||||
MTGCard * card = deck->collection[i];
|
||||
if (card){
|
||||
MTGCardInstance * newCard = NEW MTGCardInstance(card, this);
|
||||
library->addCard(newCard);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
MTGPlayerCards::~MTGPlayerCards(){
|
||||
|
||||
Reference in New Issue
Block a user