mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-28 14:47:11 -07:00
* [Game] Refactor subtype tally code to be more generic * remove default case * consolidate empty check * fix include guard * backwards compatibility with qt5
15 lines
320 B
C++
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 {};
|
|
}
|