d5f3e4cfea
Also fixed the project includes so that we don't need to always use the indirect include path, ie: #include "../include/foo.h" -> #include "foo.h" I'm don't know much about make files - if I busted the linux build, mea culpa, but I think we're okay on that front too. For future reference, here's the most straightforward link on the topic of adding pch support to make files: http://www.mercs-eng.com/~hulud/index.php?2008/06/13/6-writing-a-good-makefile-for-a-c-project
25 lines
679 B
C++
25 lines
679 B
C++
#include "PrecompiledHeader.h"
|
|
|
|
#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;
|
|
rarity = Constants::RARITY_T;
|
|
name = _name;
|
|
if (name.size() && name[0]>=97 && name[0]<=122) name[0]-=32; //Poor man's camelcase. We assume strings we get are either Camelcased or lowercase
|
|
setMTGId(- source->getMTGId());
|
|
setId = source->setId;
|
|
model = this;
|
|
data=this;
|
|
owner = source->owner;
|
|
belongs_to=source->controller()->game;
|
|
attacker = 0;
|
|
defenser = NULL;
|
|
banding = NULL;
|
|
}
|