move reducedCost and increasedCost out of cardprimitives and into MTGCardInstance
This commit is contained in:
@@ -23,8 +23,8 @@ CardPrimitive::CardPrimitive(CardPrimitive * source)
|
||||
for (int i = 0; i < Constants::MTG_NB_COLORS; ++i)
|
||||
colors[i] = source->colors[i];
|
||||
manaCost.copy(source->getManaCost());
|
||||
reducedCost.copy(source->getReducedManaCost());
|
||||
increasedCost.copy(source->getIncreasedManaCost());
|
||||
//reducedCost.copy(source->getReducedManaCost());
|
||||
//increasedCost.copy(source->getIncreasedManaCost());
|
||||
if(source->getManaCost()->alternative)
|
||||
manaCost.alternative->alternativeName = source->getManaCost()->alternative->alternativeName;
|
||||
|
||||
@@ -276,15 +276,6 @@ ManaCost* CardPrimitive::getManaCost()
|
||||
return &manaCost;
|
||||
}
|
||||
|
||||
ManaCost* CardPrimitive::getReducedManaCost()
|
||||
{
|
||||
return &reducedCost;
|
||||
}
|
||||
ManaCost* CardPrimitive::getIncreasedManaCost()
|
||||
{
|
||||
return &increasedCost;
|
||||
}
|
||||
|
||||
bool CardPrimitive::hasType(int _type)
|
||||
{
|
||||
for (size_t i = 0; i < types.size(); i++)
|
||||
|
||||
Reference in New Issue
Block a user