Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
CardFilter Class Reference

#include <filter_card.h>

Inheritance diagram for CardFilter:
[legend]
Collaboration diagram for CardFilter:
[legend]

Public Types

enum  Type {
  TypeAnd = 0 , TypeOr , TypeAndNot , TypeOrNot ,
  TypeEnd
}
enum  Attr {
  AttrCmc = 0 , AttrColor , AttrLoyalty , AttrManaCost ,
  AttrName , 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 CardFilterfromJson (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

Member Enumeration Documentation

◆ Attr

Enumerator
AttrCmc 
AttrColor 
AttrLoyalty 
AttrManaCost 
AttrName 
AttrPow 
AttrRarity 
AttrSet 
AttrText 
AttrTough 
AttrType 
AttrMainType 
AttrSubType 
AttrFormat 
AttrEnd 

◆ Type

Enumerator
TypeAnd 
TypeOr 
TypeAndNot 
TypeOrNot 
TypeEnd 

Constructor & Destructor Documentation

◆ CardFilter()

CardFilter::CardFilter ( QString & term,
Type type,
Attr attr )
inline
Here is the call graph for this function:
Here is the caller graph for this function:

Member Function Documentation

◆ attr()

Attr CardFilter::attr ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ attrName()

const QString CardFilter::attrName ( Attr a)
static
Here is the caller graph for this function:

◆ fromJson()

CardFilter * CardFilter::fromJson ( const QJsonObject & json)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ term()

const QString & CardFilter::term ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ toJson()

QJsonObject CardFilter::toJson ( ) const
nodiscard
Here is the call graph for this function:

◆ type()

Type CardFilter::type ( ) const
inlinenodiscard
Here is the caller graph for this function:

◆ typeName()

const QString CardFilter::typeName ( Type t)
static
Here is the caller graph for this function:

Member Data Documentation

◆ a

enum Attr CardFilter::a
private

◆ t

enum Type CardFilter::t
private

◆ trm

QString CardFilter::trm
private

The documentation for this class was generated from the following files: