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
135 lines
2.4 KiB
C++
135 lines
2.4 KiB
C++
#include "PrecompiledHeader.h"
|
|
|
|
#include "MTGDefinitions.h"
|
|
|
|
char Constants::MTGColorChars[] = {'x','g','u','r','b','w','l'};
|
|
const char* Constants::MTGColorStrings[] = {"artifact", "green", "blue", "red", "black", "white", "land"};
|
|
|
|
int Constants::_r[7] = {75, 20, 20, 200,50,255,128};
|
|
int Constants::_g[7] = {30, 140, 30, 15, 50,255,128};
|
|
int Constants::_b[7] = {20, 0, 140,15, 50,255,128};
|
|
|
|
const char* Constants::MTGBasicAbilities[] = {
|
|
"trample",
|
|
"forestwalk",
|
|
"islandwalk",
|
|
"mountainwalk",
|
|
"swampwalk",
|
|
"plainswalk",
|
|
"flying",
|
|
"first strike",
|
|
"double strike",
|
|
"fear",
|
|
"flash",
|
|
"haste",
|
|
"lifelink",
|
|
"reach",
|
|
"shroud",
|
|
"vigilance",
|
|
"defender",
|
|
"banding",
|
|
"protection from green",
|
|
"protection from blue",
|
|
"protection from red",
|
|
"protection from black",
|
|
"protection from white",
|
|
"unblockable",
|
|
"wither",
|
|
"persist",
|
|
"retrace",
|
|
"exalted",
|
|
"nofizzle",
|
|
"shadow",
|
|
"reachshadow",
|
|
"foresthome",
|
|
"islandhome",
|
|
"mountainhome",
|
|
"swamphome",
|
|
"plainshome",
|
|
"cloud",
|
|
"cantattack",
|
|
"mustattack",
|
|
"cantblock",
|
|
"doesnotuntap",
|
|
"opponentshroud",
|
|
"indestructible",
|
|
"intimidate",
|
|
"deathtouch",
|
|
"horsemanship",
|
|
"cantregen",
|
|
"oneblocker",
|
|
"infect",
|
|
"poisontoxic",
|
|
"poisontwotoxic",
|
|
"poisonthreetoxic",
|
|
"phantom",//prevents damage and remove 1 +1/+1 counter
|
|
"wilting",//source takes damage in the form of -1/-1 counters.
|
|
"vigor",//instead of taking damage the source gains +1/+1 counters
|
|
"changeling",//this card is every creature type at all times
|
|
"absorb",//timeshifted sliver ability. if damage would be dealt to card, prevent 1 of that damage.
|
|
"treason",
|
|
"unearth",
|
|
"cantlose",
|
|
"cantlifelose",
|
|
"cantmilllose",
|
|
"cantcreaturecast",
|
|
"cantspellcast",
|
|
"onlyonecast",
|
|
"storm",
|
|
"bothcantcast",
|
|
"bothnocreature",
|
|
"oneboth",
|
|
"affinityartifacts",
|
|
"affinityplains",
|
|
"affinityforests",
|
|
"affinityislands",
|
|
"affinitymountains",
|
|
"affinityswamps",
|
|
"affinitygreencreatures",
|
|
"cantwin",
|
|
"nomaxhand",
|
|
"leyline",
|
|
"playershroud",
|
|
"controllershroud",
|
|
"sunburst",
|
|
"flanking",
|
|
"exiledeath",
|
|
};
|
|
|
|
|
|
const char* Constants::MTGPhaseNames[] =
|
|
{
|
|
"---",
|
|
"Untap",
|
|
"Upkeep",
|
|
"Draw",
|
|
"Main phase 1",
|
|
"Combat begins",
|
|
"Attackers",
|
|
"Blockers",
|
|
"Combat damage",
|
|
"Combat ends",
|
|
"Main phase 2",
|
|
"End",
|
|
"Cleanup",
|
|
"---"
|
|
};
|
|
|
|
const char* Constants::MTGPhaseCodeNames[] =
|
|
{
|
|
"beginofturn",
|
|
"untap",
|
|
"upkeep",
|
|
"draw",
|
|
"firstmain",
|
|
"combatbegins",
|
|
"attackers",
|
|
"blockers",
|
|
"combatdamage",
|
|
"combatends",
|
|
"secondmain",
|
|
"end",
|
|
"cleanup",
|
|
"beforenextturn"
|
|
};
|