![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#include <filter_card.h>
Public Types | |
| enum | Type { TypeAnd = 0 , TypeOr , TypeAndNot , TypeOrNot , TypeEnd } |
| enum | Attr { AttrCmc = 0 , AttrColor , AttrLoyalty , AttrManaCost , AttrName , AttrNameExact , AttrPow , AttrRarity , AttrSet , AttrText , AttrTough , AttrType , AttrMainType , AttrSubType , AttrFormat , AttrEnd } |
Public Member Functions | |
| CardFilter (QString &term, Type type, Attr attr) | |
| Type | type () const |
| const QString & | term () const |
| Attr | attr () const |
| QJsonObject | toJson () const |
Static Public Member Functions | |
| static CardFilter * | fromJson (const QJsonObject &json) |
| static const QString | typeName (Type t) |
| static const QString | attrName (Attr a) |
Private Attributes | |
| QString | trm |
| enum Type | t |
| enum Attr | a |
| enum CardFilter::Attr |
| enum CardFilter::Type |
|
inlinenodiscard |
|
static |
|
static |
|
inlinenodiscard |
|
nodiscard |
|
inlinenodiscard |
|
static |
|
private |
|
private |
|
private |