Jeck - Added filtering by card's first letter. This is pretty much the last filter I can think of, except possibly some more complex ones like the mana producer filter.

This commit is contained in:
wagic.jeck
2010-02-08 23:10:45 +00:00
parent 251f89d7b9
commit e5be940766
4 changed files with 46 additions and 1 deletions

View File

@@ -93,6 +93,15 @@ public:
protected:
int setid;
};
class WCFilterLetter: public WCardFilter{
public:
WCFilterLetter(string arg);
bool isMatch(MTGCard * c);
string getCode();
float filterFee() {return 1.0f;}; //Alpha searches are expensive!
protected:
char alpha;
};
class WCFilterColor: public WCardFilter{
public:
WCFilterColor(int _c) {color = _c;};

View File

@@ -452,6 +452,7 @@ public:
STATE_CANCEL,
BEGIN_FILTERS = 0,
FILTER_SET = BEGIN_FILTERS,
FILTER_ALPHA,
FILTER_RARITY,
FILTER_COLOR,
FILTER_PRODUCE,