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:
@@ -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;};
|
||||
|
||||
@@ -452,6 +452,7 @@ public:
|
||||
STATE_CANCEL,
|
||||
BEGIN_FILTERS = 0,
|
||||
FILTER_SET = BEGIN_FILTERS,
|
||||
FILTER_ALPHA,
|
||||
FILTER_RARITY,
|
||||
FILTER_COLOR,
|
||||
FILTER_PRODUCE,
|
||||
|
||||
Reference in New Issue
Block a user