![]() |
Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
|
#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>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. | |
| 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.
| db | Card database used to look up card color symbols. |