Cockatrice 2026-01-14-Development-2.11.0-beta.46
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
deck_list_model.cpp File Reference
Include dependency graph for deck_list_model.cpp:

Functions

static QString extractGroupCriteriaValue (const CardInfoPtr &info, DeckListModelGroupCriteria::Type criteria)
 Extract the value from the card that is used for the group criteria.
static int maxAllowedForLegality (const FormatRules &format, const QString &legality)
static bool isCardQuantityLegalForFormat (const QString &format, const CardInfo &cardInfo, int quantity)

Function Documentation

◆ extractGroupCriteriaValue()

QString extractGroupCriteriaValue ( const CardInfoPtr & info,
DeckListModelGroupCriteria::Type criteria )
static

Extract the value from the card that is used for the group criteria.

Parameters
infoPointer to card information.
criteriaThe group criteria
Returns
String representing the value of the criteria.
Here is the caller graph for this function:

◆ isCardQuantityLegalForFormat()

bool isCardQuantityLegalForFormat ( const QString & format,
const CardInfo & cardInfo,
int quantity )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ maxAllowedForLegality()

int maxAllowedForLegality ( const FormatRules & format,
const QString & legality )
static
Here is the caller graph for this function: