reformatting code according to guidelines defined at

http://wololo.net/forum/viewtopic.php?f=35&t=2235&start=10
This commit is contained in:
techdragon.nguyen@gmail.com
2010-11-16 00:55:16 +00:00
parent c79fdcbf50
commit acd7bb1aa4
103 changed files with 38044 additions and 31222 deletions

View File

@@ -2,23 +2,25 @@
#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;
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;
}