mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-13 01:24:46 -07:00
* big move * also move game_specific_terms * fix imports * alphabetize cmake * fix build failure * create database folder and move files into it * fix includes * run formatter
46 lines
866 B
C++
46 lines
866 B
C++
#ifndef EXACT_CARD_H
|
|
#define EXACT_CARD_H
|
|
|
|
#include "card_info.h"
|
|
|
|
/**
|
|
* Identifies the card along with its exact printing
|
|
*/
|
|
class ExactCard
|
|
{
|
|
CardInfoPtr card;
|
|
PrintingInfo printing;
|
|
|
|
public:
|
|
ExactCard();
|
|
explicit ExactCard(const CardInfoPtr &_card, const PrintingInfo &_printing = PrintingInfo());
|
|
|
|
/**
|
|
* Gets the CardInfoPtr. Can be null.
|
|
*/
|
|
CardInfoPtr getCardPtr() const
|
|
{
|
|
return card;
|
|
}
|
|
|
|
/**
|
|
* Gets the PrintingInfo. Can be empty.
|
|
*/
|
|
PrintingInfo getPrinting() const
|
|
{
|
|
return printing;
|
|
}
|
|
|
|
bool operator==(const ExactCard &other) const;
|
|
|
|
QString getName() const;
|
|
const CardInfo &getInfo() const;
|
|
QString getPixmapCacheKey() const;
|
|
|
|
bool isEmpty() const;
|
|
explicit operator bool() const;
|
|
|
|
void emitPixmapUpdated() const;
|
|
};
|
|
|
|
#endif // EXACT_CARD_H
|