21 lines
443 B
C++
21 lines
443 B
C++
#include "MTGCardInstance.h"
|
|
|
|
//---------------------------------------------
|
|
//Card Instance
|
|
//--------------------------------------------
|
|
MTGCardInstance::MTGCardInstance(MTGCard * card, MTGPlayerCards * _belongs_to) :
|
|
model(card)
|
|
{
|
|
belongs_to = _belongs_to;
|
|
}
|
|
|
|
int MTGCardInstance::isInPlay()
|
|
{
|
|
return belongs_to->isInPlay(this);
|
|
}
|
|
|
|
JQuad * MTGCardInstance::getQuad(TexturesCache * cache)
|
|
{
|
|
return model->getQuad(cache);
|
|
}
|