Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
SubtypeTally Namespace Reference

Extracts and tallies subtypes from selected cards. More...

Functions

QList< TallyRowcountSubtypes (const QList< CardItem * > &cards)
 Parses card type lines and counts each subtype occurrence.

Detailed Description

Extracts and tallies subtypes from selected cards.

Function Documentation

◆ countSubtypes()

QList< TallyRow > SubtypeTally::countSubtypes ( const QList< CardItem * > & cards)

Parses card type lines and counts each subtype occurrence.

Skips face-down cards and cards without type info.

Parameters
cardsThe list of selected card items to analyze.
Returns
Entries sorted by count ascending, then alphabetically.
Here is the caller graph for this function: