Cockatrice 2026-09-01-Development-3.1.0-beta.10
A virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
Tally Namespace Reference

Functions

TallyType intToType (int value)
QList< TallyRowcompute (const QList< CardItem * > &cards, TallyType type)
 Analyzes the selected cards according to the tally type and builds the resulting tally rows. This forwards the cards to the code for that tally type.

Function Documentation

◆ compute()

QList< TallyRow > Tally::compute ( const QList< CardItem * > & cards,
TallyType type )

Analyzes the selected cards according to the tally type and builds the resulting tally rows. This forwards the cards to the code for that tally type.

Parameters
cardsThe list of selected card items to analyze.
typeThe type of tally to do
Returns
Rows sorted in top-to-bottom display order
Here is the call graph for this function:
Here is the caller graph for this function:

◆ intToType()

TallyType Tally::intToType ( int value)

Safely converts an int into the corresponding TallyType.

Parameters
valueThe int value
Returns
The TallyType. Returns TallyType::None if the value is not within range
Here is the caller graph for this function: