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

Functions

static CardSet::Priority getSetPriority (const QString &setType, const QString &shortName)
static QString getMainCardType (const QStringList &typeList)
static void sortAndReduceColors (QString &colors)
static QString getStringPropertyFromMap (const QVariantMap &card, const QString &propertyName)

Variables

static const QList< AllowedCountkConstructedCounts = {{4, "legal"}, {0, "banned"}}
static const QList< AllowedCountkSingletonCounts = {{1, "legal"}, {0, "banned"}}

Function Documentation

◆ getMainCardType()

QString getMainCardType ( const QStringList & typeList)
static
Here is the caller graph for this function:

◆ getSetPriority()

CardSet::Priority getSetPriority ( const QString & setType,
const QString & shortName )
static
Here is the caller graph for this function:

◆ getStringPropertyFromMap()

QString getStringPropertyFromMap ( const QVariantMap & card,
const QString & propertyName )
static
Here is the caller graph for this function:

◆ sortAndReduceColors()

void sortAndReduceColors ( QString & colors)
static

Sorts and deduplicates the color chars in the string by WUBRG order.

Parameters
colorsThe string containing the color chars. Will be modified in-place
Here is the caller graph for this function:

Variable Documentation

◆ kConstructedCounts

const QList<AllowedCount> kConstructedCounts = {{4, "legal"}, {0, "banned"}}
static

◆ kSingletonCounts

const QList<AllowedCount> kSingletonCounts = {{1, "legal"}, {0, "banned"}}
static