Cockatrice 2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
tally.h
Go to the documentation of this file.
1#ifndef COCKATRICE_TALLY_H
2#define COCKATRICE_TALLY_H
3#include <QList>
4#include <QString>
5
6class CardItem;
7
9struct TallyRow
10{
11 QString name;
12 QString value;
13
14 bool operator==(const TallyRow &) const = default;
15};
16
28
29namespace Tally
30{
31
38TallyType intToType(int value);
39
49
50} // namespace Tally
51
52#endif // COCKATRICE_TALLY_H
Definition card_item.h:33
Definition remote_connection_controller.h:20
Definition tally.h:30
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
EmailType type
Definition smtpclient.cpp:30
A single row of the tally output.
Definition tally.h:10
QString value
Value for the row (displayed on the right).
Definition tally.h:12
QString name
The row name (displayed on the left).
Definition tally.h:11
bool operator==(const TallyRow &) const =default
TallyType
Definition tally.h:21
@ None
Definition tally.h:22
@ TotalToughness
Definition tally.h:25
@ MaxValue
Definition tally.h:26
@ TotalPower
Definition tally.h:24
@ Subtypes
Definition tally.h:23