Files
Cockatrice/cockatrice/src/game_graphics/tally/tally.cpp
T
RickyRisterandGitHub c5b37cdffe [Game] Refactor subtype tally code to be more generic (#7021)
* [Game] Refactor subtype tally code to be more generic

* remove default case

* consolidate empty check

* fix include guard

* backwards compatibility with qt5
2026-07-05 19:11:08 -07:00

15 lines
320 B
C++

#include "tally.h"
#include "subtype_tally.h"
QList<TallyRow> Tally::compute(const QList<CardItem *> &cards, const TallyType type)
{
switch (type) {
case TallyType::None:
return {};
case TallyType::Subtypes:
return SubtypeTally::countSubtypes(cards);
}
return {};
}