moved the level varible from MTGcard to MTGprimitive.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user