Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
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
21
22// Helper function to transform the enum values into human-readable strings
24{
25 switch (type) {
27 return "attach";
29 return "transform";
30 default:
31 return "";
32 }
33}
34
35#endif // COCKATRICE_CARD_RELATION_TYPE_H
QString cardAttachTypeToString(CardRelationType type)
Definition card_relation_type.h:23
CardRelationType
Types of attachments between cards.
Definition card_relation_type.h:16
@ TransformInto
Definition card_relation_type.h:19
@ DoesNotAttach
Definition card_relation_type.h:17
@ AttachTo
Definition card_relation_type.h:18