mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-11 21:04:07 -07:00
Doxygen card_relation_type.h
Took 3 minutes
This commit is contained in:
parent
43e04922cf
commit
9bb7be2e4e
1 changed files with 8 additions and 2 deletions
|
|
@ -4,7 +4,13 @@
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Represents how a card relates to another (attach, transform, etc.).
|
* @enum CardRelationType
|
||||||
|
* @ingroup Cards
|
||||||
|
* @brief Types of attachments between cards.
|
||||||
|
*
|
||||||
|
* DoesNotAttach: No attachment is present.
|
||||||
|
* AttachTo: This card attaches to another card.
|
||||||
|
* TransformInto: This card transforms into another card.
|
||||||
*/
|
*/
|
||||||
enum class CardRelationType
|
enum class CardRelationType
|
||||||
{
|
{
|
||||||
|
|
@ -13,7 +19,7 @@ enum class CardRelationType
|
||||||
TransformInto = 2,
|
TransformInto = 2,
|
||||||
};
|
};
|
||||||
|
|
||||||
// Optional helper
|
// Helper function to transform the enum values into human-readable strings
|
||||||
inline QString cardAttachTypeToString(CardRelationType type)
|
inline QString cardAttachTypeToString(CardRelationType type)
|
||||||
{
|
{
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue