1#ifndef COCKATRICE_TALLY_H
2#define COCKATRICE_TALLY_H
Definition card_item.h:27
TallyType intToType(int value)
Definition tally.cpp:6
QList< TallyRow > compute(const QList< CardItem * > &cards, TallyType type)
Analyzes the selected cards according to the tally type and builds the resulting tally rows....
Definition tally.cpp:15
A single row of the tally output.
Definition tally.h:9
QString value
Value for the row (displayed on the right).
Definition tally.h:11
QString name
The row name (displayed on the left).
Definition tally.h:10
bool operator==(const TallyRow &) const =default
TallyType
Definition tally.h:20
@ None
Definition tally.h:21
@ MaxValue
Definition tally.h:24
@ TotalPower
Definition tally.h:23
@ Subtypes
Definition tally.h:22