mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-10 12:23:58 -07:00
add docs
This commit is contained in:
parent
49a4bb1a3c
commit
a77246c5f7
1 changed files with 15 additions and 0 deletions
|
|
@ -309,10 +309,25 @@ public:
|
||||||
}
|
}
|
||||||
void setDeckList(DeckList *_deck);
|
void setDeckList(DeckList *_deck);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Creates a list consisting of the entries of the model mapped into ExactCards (with each entry looked up
|
||||||
|
* in the card database).
|
||||||
|
* If a card node has number > 1, it will be added that many times to the list.
|
||||||
|
* If an entry's card is not found in the card database, that entry will be left out of the list.
|
||||||
|
* @return An ordered list of ExactCards
|
||||||
|
*/
|
||||||
[[nodiscard]] QList<ExactCard> getCards() const;
|
[[nodiscard]] QList<ExactCard> getCards() const;
|
||||||
[[nodiscard]] QList<ExactCard> getCardsForZone(const QString &zoneName) const;
|
[[nodiscard]] QList<ExactCard> getCardsForZone(const QString &zoneName) const;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Gets a deduplicated list of all card names that appear in the model
|
||||||
|
*/
|
||||||
[[nodiscard]] QList<QString> getCardNames() const;
|
[[nodiscard]] QList<QString> getCardNames() const;
|
||||||
|
/**
|
||||||
|
* @brief Gets a list of all zone names that appear in the model
|
||||||
|
*/
|
||||||
[[nodiscard]] QList<QString> getZones() const;
|
[[nodiscard]] QList<QString> getZones() const;
|
||||||
|
|
||||||
bool isCardLegalForCurrentFormat(CardInfoPtr cardInfo);
|
bool isCardLegalForCurrentFormat(CardInfoPtr cardInfo);
|
||||||
bool isCardQuantityLegalForCurrentFormat(CardInfoPtr cardInfo, int quantity);
|
bool isCardQuantityLegalForCurrentFormat(CardInfoPtr cardInfo, int quantity);
|
||||||
void refreshCardFormatLegalities();
|
void refreshCardFormatLegalities();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue