mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-01-17 15:32:11 -08:00
40 lines
869 B
C++
40 lines
869 B
C++
#ifndef COCKATRICE_DECK_FUNCTION_H
|
|
#define COCKATRICE_DECK_FUNCTION_H
|
|
|
|
class DecklistCardNode;
|
|
class InnerDecklistNode;
|
|
|
|
/**
|
|
* Functions to be used with DeckList::forEachCard
|
|
*/
|
|
namespace CardNodeFunction
|
|
{
|
|
|
|
/**
|
|
* @brief Sets the providerId of the card to the preferred printing.
|
|
*/
|
|
struct SetProviderIdToPreferred
|
|
{
|
|
void operator()(const InnerDecklistNode *node, DecklistCardNode *card) const;
|
|
};
|
|
|
|
/**
|
|
* @brief Clears all fields on the card related to the printing
|
|
*/
|
|
struct ClearPrintingData
|
|
{
|
|
void operator()(const InnerDecklistNode *node, DecklistCardNode *card) const;
|
|
};
|
|
|
|
/**
|
|
* @brief Sets the providerId of the card based on its set name and collector number.
|
|
*/
|
|
struct ResolveProviderId
|
|
{
|
|
void operator()(const InnerDecklistNode *node, DecklistCardNode *card) const;
|
|
};
|
|
|
|
} // namespace CardNodeFunction
|
|
|
|
#endif // COCKATRICE_DECK_FUNCTION_H
|