Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
deck_color_identity.cpp File Reference
#include "deck_color_identity.h"
#include "libcockatrice/card/card_info.h"
#include <QChar>
#include <QList>
#include <QSet>
#include <QStringList>
#include <libcockatrice/card/database/card_database_querier.h>
#include <libcockatrice/deck_list/deck_list.h>
#include <libcockatrice/deck_list/tree/inner_deck_list_node.h>
Include dependency graph for deck_color_identity.cpp:

Functions

QString getDeckColorIdentity (const DeckList &deck, const CardDatabaseQuerier *db)
 Computes the color identity of a deck (e.g. "WUBRG") from the color symbols of all cards in the main deck and sideboard, ordered WUBRG.

Function Documentation

◆ getDeckColorIdentity()

QString getDeckColorIdentity ( const DeckList & deck,
const CardDatabaseQuerier * db )

Computes the color identity of a deck (e.g. "WUBRG") from the color symbols of all cards in the main deck and sideboard, ordered WUBRG.

Shared as a free function so the deck storage previews and the deck share dialog compute identities identically.

Parameters
dbCard database used to look up card color symbols.
Here is the call graph for this function:
Here is the caller graph for this function: