Cockatrice 2026-01-14-Development-2.11.0-beta.46
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
format_legality_rules.h File Reference
#include <QRegularExpression>
#include <QSharedPointer>
#include <QString>
Include dependency graph for format_legality_rules.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  CardCondition
struct  AllowedCount
struct  ExceptionRule
struct  FormatRules

Typedefs

using CardInfoPtr = QSharedPointer<CardInfo>

Enumerations

enum class  CardMatchType {
  Equals , NotEquals , Contains , NotContains ,
  Regex
}

Functions

CardMatchType matchTypeFromString (const QString &str)
bool cardMatchesCondition (const CardInfo &card, const CardCondition &cond)
bool exceptionAppliesToCard (const CardInfo &card, const ExceptionRule &rule)
bool cardHasAnyException (const CardInfo &card, const FormatRules &format)

Typedef Documentation

◆ CardInfoPtr

using CardInfoPtr = QSharedPointer<CardInfo>

Enumeration Type Documentation

◆ CardMatchType

enum class CardMatchType
strong
Enumerator
Equals 
NotEquals 
Contains 
NotContains 
Regex 

Function Documentation

◆ cardHasAnyException()

bool cardHasAnyException ( const CardInfo & card,
const FormatRules & format )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cardMatchesCondition()

bool cardMatchesCondition ( const CardInfo & card,
const CardCondition & cond )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ exceptionAppliesToCard()

bool exceptionAppliesToCard ( const CardInfo & card,
const ExceptionRule & rule )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ matchTypeFromString()

CardMatchType matchTypeFromString ( const QString & str)
inline
Here is the caller graph for this function: