Cockatrice 2026-03-05-Development-2.11.0-beta.54
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
oracleimporter.cpp File Reference
#include "oracleimporter.h"
#include "libcockatrice/interfaces/noop_card_preference_provider.h"
#include "libcockatrice/interfaces/noop_card_set_priority_controller.h"
#include "parsehelpers.h"
#include "qt-json/json.h"
#include <QDebug>
#include <QRegularExpression>
#include <algorithm>
#include <climits>
#include <libcockatrice/card/database/parser/cockatrice_xml_4.h>
#include <libcockatrice/card/relation/card_relation.h>
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