Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
card_picture_to_load.cpp File Reference
#include "card_picture_to_load.h"
#include "../../client/settings/cache_settings.h"
#include <QCoreApplication>
#include <QDate>
#include <QRegularExpression>
#include <QUrl>
#include <algorithm>
#include <libcockatrice/card/set/card_set_comparator.h>
#include <libcockatrice/interfaces/noop_card_set_priority_controller.h>
Include dependency graph for card_picture_to_load.cpp:

Functions

static PrintingInfo findPrintingForSet (const ExactCard &card, const QString &setName)
static int parse (const QString &urlTemplate, const QString &propType, const QString &cardName, const QString &setName, std::function< QString(const QString &)> getProperty, QMap< QString, QString > &transformMap)

Function Documentation

◆ findPrintingForSet()

PrintingInfo findPrintingForSet ( const ExactCard & card,
const QString & setName )
static

Finds the PrintingInfo corresponding to the exactCards's card name that belongs to a given set and has the exactCards's providerId. If the set name is in the CardInfo, but no printings in that set match the card's providerId, then the first PrintingInfo for the set is returned.

This method only exists to maintain existing behavior. TODO: check if going through all sets is still necessary after the ExactCard refactor.

Parameters
cardThe card to look in
setNameThe set's short name
Returns
A PrintingInfo, or a default-constructed PrintingInfo if the set name is not in the CardInfo.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse()

int parse ( const QString & urlTemplate,
const QString & propType,
const QString & cardName,
const QString & setName,
std::function< QString(const QString &)> getProperty,
QMap< QString, QString > & transformMap )
static
Here is the caller graph for this function: