Cockatrice
2026-10-19-Development-3.1.2-beta.2
A virtual tabletop for multiplayer card games
Toggle main menu visibility
Loading...
Searching...
No Matches
card_relation_type.h
Go to the documentation of this file.
1
#ifndef COCKATRICE_CARD_RELATION_TYPE_H
2
#define COCKATRICE_CARD_RELATION_TYPE_H
3
4
#include <QString>
5
15
enum class
CardRelationType
16
{
17
DoesNotAttach
= 0,
18
AttachTo
= 1,
19
TransformInto
= 2,
20
};
21
22
// Helper function to transform the enum values into human-readable strings
23
inline
QString
cardAttachTypeToString
(
CardRelationType
type
)
24
{
25
switch
(
type
) {
26
case
CardRelationType::AttachTo
:
27
return
"attach"
;
28
case
CardRelationType::TransformInto
:
29
return
"transform"
;
30
default
:
31
return
""
;
32
}
33
}
34
35
#endif
// COCKATRICE_CARD_RELATION_TYPE_H
cardAttachTypeToString
QString cardAttachTypeToString(CardRelationType type)
Definition
card_relation_type.h:23
CardRelationType
CardRelationType
Types of attachments between cards.
Definition
card_relation_type.h:16
CardRelationType::TransformInto
@ TransformInto
Definition
card_relation_type.h:19
CardRelationType::DoesNotAttach
@ DoesNotAttach
Definition
card_relation_type.h:17
CardRelationType::AttachTo
@ AttachTo
Definition
card_relation_type.h:18
type
EmailType type
Definition
smtpclient.cpp:30
libcockatrice_card
libcockatrice
card
relation
card_relation_type.h
Generated by
1.18.0