[Game] Implement total power tally (#7057)

* [Game] Implement total power tally

* PR comments
This commit is contained in:
RickyRister 2026-08-02 19:20:47 -07:00 • committed by GitHub
parent a4557454a7
commit ca1c063687
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 67 additions and 1 deletions

View file

@ -0,0 +1,21 @@
#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);
} // namespace StatsTally
#endif // COCKATRICE_STATS_TALLY_H