Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
StatsTally Namespace Reference

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

Functions

QList< TallyRow > computeTotalPower (const QList< CardItem * > &cards)
 Sums the power of all selected cards.
QList< TallyRow > computeTotalToughness (const QList< CardItem * > &cards)
 Sums the toughness of all selected cards.

Detailed Description

Extracts and tallies stats from selected cards.

Function Documentation

◆ computeTotalPower()

QList< TallyRow > StatsTally::computeTotalPower ( const QList< CardItem * > & cards)

Sums the power of all selected cards.

Parameters
cardsThe list of selected card items to analyze.
Returns
A single row containing the total, or an empty list if none of the cards have pt
Here is the call graph for this function:
Here is the caller graph for this function:

◆ computeTotalToughness()

QList< TallyRow > StatsTally::computeTotalToughness ( const QList< CardItem * > & cards)

Sums the toughness of all selected cards.

Parameters
cardsThe list of selected card items to analyze.
Returns
A single row containing the total, or an empty list if none of the cards have pt
Here is the call graph for this function:
Here is the caller graph for this function: