Cockatrice 2026-01-14-Development-2.11.0-beta.46
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
DeckStatsInterface Class Reference

#include <deck_stats_interface.h>

Inheritance diagram for DeckStatsInterface:
[legend]
Collaboration diagram for DeckStatsInterface:
[legend]

Public Member Functions

 DeckStatsInterface (CardDatabase &_cardDatabase, QObject *parent=nullptr)
void analyzeDeck (const DeckList &deck)

Private Slots

void queryFinished (QNetworkReply *reply)
void getAnalyzeRequestData (const DeckList &deck, QByteArray &data)

Private Member Functions

void copyDeckWithoutTokens (const DeckList &source, DeckList &destination)

Private Attributes

QNetworkAccessManager * manager
CardDatabasecardDatabase

Constructor & Destructor Documentation

◆ DeckStatsInterface()

DeckStatsInterface::DeckStatsInterface ( CardDatabase & _cardDatabase,
QObject * parent = nullptr )
explicit
Here is the call graph for this function:

Member Function Documentation

◆ analyzeDeck()

void DeckStatsInterface::analyzeDeck ( const DeckList & deck)
Here is the call graph for this function:

◆ copyDeckWithoutTokens()

void DeckStatsInterface::copyDeckWithoutTokens ( const DeckList & source,
DeckList & destination )
private

Deckstats doesn't recognize token cards, and instead tries to find the closest non-token card instead. So we construct a new deck which has no tokens.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getAnalyzeRequestData

void DeckStatsInterface::getAnalyzeRequestData ( const DeckList & deck,
QByteArray & data )
privateslot
Here is the call graph for this function:
Here is the caller graph for this function:

◆ queryFinished

void DeckStatsInterface::queryFinished ( QNetworkReply * reply)
privateslot
Here is the caller graph for this function:

Member Data Documentation

◆ cardDatabase

CardDatabase& DeckStatsInterface::cardDatabase
private

◆ manager

QNetworkAccessManager* DeckStatsInterface::manager
private

The documentation for this class was generated from the following files: