mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-14 06:22:15 -07:00
Merge branch 'master' into fix-compiler-warnings
This commit is contained in:
commit
b88dc38278
103 changed files with 2317 additions and 1431 deletions
|
|
@ -1,9 +1,3 @@
|
|||
/**
|
||||
* @file card_info.h
|
||||
* @ingroup Cards
|
||||
* @brief TODO: Document this.
|
||||
*/
|
||||
|
||||
#ifndef CARD_INFO_H
|
||||
#define CARD_INFO_H
|
||||
|
||||
|
|
@ -54,6 +48,10 @@ class CardInfo : public QObject
|
|||
Q_OBJECT
|
||||
|
||||
private:
|
||||
/** @name Private Card Properties
|
||||
* @anchor PrivateCardProperties
|
||||
*/
|
||||
///@{
|
||||
CardInfoPtr smartThis; ///< Smart pointer to self for safe cross-references.
|
||||
QString name; ///< Full name of the card.
|
||||
QString simpleName; ///< Simplified name for fuzzy matching.
|
||||
|
|
@ -69,6 +67,7 @@ private:
|
|||
bool landscapeOrientation; ///< Orientation flag for rendering.
|
||||
int tableRow; ///< Row index in a table or visual representation.
|
||||
bool upsideDownArt; ///< Whether artwork is flipped for visual purposes.
|
||||
///@}
|
||||
|
||||
public:
|
||||
/**
|
||||
|
|
@ -161,7 +160,7 @@ public:
|
|||
*/
|
||||
CardInfoPtr clone() const
|
||||
{
|
||||
CardInfoPtr newCardInfo = CardInfoPtr(new CardInfo(*this));
|
||||
auto newCardInfo = CardInfoPtr(new CardInfo(*this));
|
||||
newCardInfo->setSmartPointer(newCardInfo); // Set the smart pointer for the new instance
|
||||
return newCardInfo;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,10 +1,3 @@
|
|||
/**
|
||||
* @file card_database.h
|
||||
* @ingroup CardDatabase
|
||||
* @brief The CardDatabase is responsible for holding the card and set maps, managing card additions/removals,
|
||||
* and providing access to sets and card querying via CardDatabaseQuerier.
|
||||
*/
|
||||
|
||||
#ifndef CARDDATABASE_H
|
||||
#define CARDDATABASE_H
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,3 @@
|
|||
/**
|
||||
* @file card_database_loader.h
|
||||
* @ingroup CardDatabase
|
||||
* @brief The CardDatabaseLoader is responsible for discovering, loading, and saving card databases from files on disk.
|
||||
*
|
||||
* This class interacts with available parsers to populate a CardDatabase instance. It also handles
|
||||
* loading main, token, spoiler, and custom card databases.
|
||||
*/
|
||||
|
||||
#ifndef COCKATRICE_CARD_DATABASE_LOADER_H
|
||||
#define COCKATRICE_CARD_DATABASE_LOADER_H
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
/**
|
||||
* @class ExactCard
|
||||
* @ingroup Cards
|
||||
* @ingroup CardPrintings
|
||||
*
|
||||
* @brief Represents a specific card instance, defined by its CardInfo
|
||||
* and a particular printing.
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ using SetToPrintingsMap = QMap<QString, QList<PrintingInfo>>;
|
|||
|
||||
/**
|
||||
* @class PrintingInfo
|
||||
* @ingroup Cards
|
||||
* @ingroup CardPrintings
|
||||
*
|
||||
* @brief Represents metadata for a specific variation of a card within a set.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ using CardSetPtr = QSharedPointer<CardSet>;
|
|||
|
||||
/**
|
||||
* @class CardSet
|
||||
* @ingroup Cards
|
||||
* @ingroup CardSets
|
||||
*
|
||||
* @brief A collection of cards grouped under a common identifier.
|
||||
*
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* @file card_set_comparator.h
|
||||
* @ingroup Cards
|
||||
* @ingroup CardSets
|
||||
* @brief TODO: Document this.
|
||||
*/
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
|
||||
/**
|
||||
* @class CardSetList
|
||||
* @ingroup Cards
|
||||
* @ingroup CardSets
|
||||
*
|
||||
* @brief A list-like container for CardSet objects with extended management methods.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue