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:
@@ -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; };
|
||||
|
||||
Reference in New Issue
Block a user