Modifications to make the game more generic.
Included in a new modrules.xml tags. <cardgui> <background> Stores information concerning the colors </ background> <renderbig> Stores information to draw the card </ renderbig> <rendertinycrop> Stores information to draw the card </ rendertinycrop> </ cardgui> Change the variables array for vectors
This commit is contained in:
@@ -5,7 +5,7 @@ using std::string;
|
||||
#include "MTGDefinitions.h"
|
||||
|
||||
char Constants::MTGColorChars[] = {'x','g','u','r','b','w','l'};
|
||||
const char* Constants::MTGColorStrings[] = {"artifact", "green", "blue", "red", "black", "white", "land"};
|
||||
vector <const char*> Constants::MTGColorStrings;
|
||||
|
||||
const string Constants::kManaColorless = "colorless";
|
||||
const string Constants::kManaGreen = "green";
|
||||
@@ -26,6 +26,8 @@ const string Constants::kRetraceKeyword = "retrace";
|
||||
const string Constants::kKickerKeyword = "kicker";
|
||||
const string Constants::kMorphKeyword = "facedown";
|
||||
|
||||
int Constants::NB_Colors; //Store de Max number of colors
|
||||
|
||||
const char* Constants::MTGBasicAbilities[] = {
|
||||
"trample",
|
||||
"forestwalk",
|
||||
@@ -141,7 +143,7 @@ int Constants::GetBasicAbilityIndex(string basicAbllity)
|
||||
|
||||
int Constants::GetColorStringIndex(string mtgColor)
|
||||
{
|
||||
for (int idx = 0; idx < Constants::MTG_NB_COLORS; ++idx)
|
||||
for (int idx = 0; idx < Constants::NB_Colors; ++idx)
|
||||
{
|
||||
if (Constants::MTGColorStrings[idx])
|
||||
return idx;
|
||||
|
||||
Reference in New Issue
Block a user