in this commit i added a creature subtype specific vector, added a couple variables for new abilities, and a sort for the creature variable to avoid the long lag out everytime we play a card or ability that needs this vector.

This commit is contained in:
omegablast2002@yahoo.com
2012-03-13 16:32:26 +00:00
parent 97bd418aac
commit 39e8bd1f30
6 changed files with 61 additions and 12 deletions
+12
View File
@@ -146,6 +146,9 @@ public:
static const vector<string>& getValuesById() {
return instance->subtypesList.getValuesById();
};
static const vector<string>& getCreatureValuesById() {
return instance->subtypesList.getCreatureValuesById();
};
static bool isSubtypeOfType(unsigned int subtype, unsigned int type) {
return instance->subtypesList.isSubtypeOfType(subtype, type);
};
@@ -159,6 +162,15 @@ public:
return instance->subtypesList.isSubType(type);
};
static void sortSubtypeList()
{
return instance->subtypesList.sortSubTypes();
}
static int findSubtypeId(string value){
return instance->subtypesList.find(value,false);
}
static void loadInstance();
static void unloadAll();
static inline MTGAllCards* getInstance() { return instance; };