39 lines
801 B
C++
39 lines
801 B
C++
#include "cardfilter.h"
|
|
|
|
const char *CardFilter::typeName(Type t)
|
|
{
|
|
switch (t) {
|
|
case TypeAnd:
|
|
return "and";
|
|
case TypeOr:
|
|
return "or";
|
|
case TypeAndNot:
|
|
return "and not";
|
|
case TypeOrNot:
|
|
return "or not";
|
|
default:
|
|
return "";
|
|
}
|
|
}
|
|
|
|
const char *CardFilter::attrName(Attr a)
|
|
{
|
|
switch (a) {
|
|
case AttrName:
|
|
return "name";
|
|
case AttrType:
|
|
return "type";
|
|
case AttrColor:
|
|
return "color";
|
|
case AttrText:
|
|
return "text";
|
|
case AttrSet:
|
|
return "set";
|
|
case AttrManaCost:
|
|
return "mana cost";
|
|
case AttrCmc:
|
|
return "cmc";
|
|
default:
|
|
return "";
|
|
}
|
|
}
|