moved the level varible from MTGcard to MTGprimitive.

This commit is contained in:
omegablast2002@yahoo.com
2010-10-23 23:48:02 +00:00
parent d7f58285f4
commit 8cb1f0cc7c
6 changed files with 16 additions and 17 deletions

View File

@@ -31,6 +31,7 @@ CardPrimitive::CardPrimitive(CardPrimitive * source){
power = source->power;
toughness = source->toughness;
level = source->level;
magicText = source->magicText;
for(map<string,string>::const_iterator it = source->magicTexts.begin(); it != source->magicTexts.end(); ++it)
@@ -330,3 +331,11 @@ void CardPrimitive::setToughness(int _toughness){
int CardPrimitive::getToughness(){
return toughness;
}
void CardPrimitive::setMaxLevel(int _levelcap){
level = _levelcap;
}
int CardPrimitive::getMaxLevel(){
return level;
}