- Added Tokens (needs testing !!!)
- Added a few cards that create tokens
This commit is contained in:
wagic.the.homebrew
2008-12-16 14:20:03 +00:00
parent be4fb31ffc
commit 9dfc89815f
24 changed files with 283 additions and 106 deletions

View File

@@ -0,0 +1,19 @@
#include "../include/Token.h"
Token::Token(string _name, MTGCardInstance * source, int _power, int _toughness):MTGCardInstance(){
isToken = true;
tokenSource = source;
power = _power;
toughness = _toughness;
life=toughness;
lifeOrig = life;
name = _name;
setMTGId(- source->getMTGId());
setId = source->setId;
model = this;
owner = source->owner;
belongs_to=source->controller()->game;
initAttackersDefensers();
mCache = source->mCache;
}