mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-21 09:05:10 -07:00
29 lines
802 B
C++
29 lines
802 B
C++
#ifndef COCKATRICE_STATS_TALLY_H
|
|
#define COCKATRICE_STATS_TALLY_H
|
|
#include "tally.h"
|
|
|
|
/**
|
|
* @brief Extracts and tallies stats from selected cards.
|
|
*/
|
|
namespace StatsTally
|
|
{
|
|
|
|
/**
|
|
* @brief Sums the power of all selected cards
|
|
*
|
|
* @param cards The list of selected card items to analyze.
|
|
* @return A single row containing the total, or an empty list if none of the cards have pt
|
|
*/
|
|
QList<TallyRow> computeTotalPower(const QList<CardItem *> &cards);
|
|
|
|
/**
|
|
* @brief Sums the toughness of all selected cards
|
|
*
|
|
* @param cards The list of selected card items to analyze.
|
|
* @return A single row containing the total, or an empty list if none of the cards have pt
|
|
*/
|
|
QList<TallyRow> computeTotalToughness(const QList<CardItem *> &cards);
|
|
|
|
} // namespace StatsTally
|
|
|
|
#endif // COCKATRICE_STATS_TALLY_H
|