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
loaded_deck.h
Go to the documentation of this file.
1
#ifndef COCKATRICE_LOADED_DECK_H
2
#define COCKATRICE_LOADED_DECK_H
3
4
#include "
deck_file_format.h
"
5
#include "
libcockatrice/deck_list/deck_list.h
"
6
7
#include <QString>
8
13
struct
LoadedDeck
14
{
15
22
struct
LoadInfo
23
{
24
static
constexpr
int
NON_REMOTE_ID
= -1;
25
26
QString
fileName
=
""
;
27
DeckFileFormat::Format
fileFormat
=
DeckFileFormat::Cockatrice
;
28
int
remoteDeckId
=
NON_REMOTE_ID
;
29
30
bool
isEmpty
()
const
;
31
};
32
33
DeckList
deckList
;
34
LoadInfo
lastLoadInfo
= {};
35
36
bool
isEmpty
()
const
;
37
};
38
39
#endif
// COCKATRICE_LOADED_DECK_H
DeckList
Represents a complete deck, including metadata, zones, cards, and sideboard plans.
Definition
deck_list.h:67
deck_file_format.h
deck_list.h
Defines the DeckList class, which manages a full deck structure including cards, zones,...
DeckFileFormat::Format
Format
Definition
deck_file_format.h:12
DeckFileFormat::Cockatrice
@ Cockatrice
Definition
deck_file_format.h:23
LoadedDeck::LoadInfo
Information about where the deck was loaded from.
Definition
loaded_deck.h:23
LoadedDeck::LoadInfo::NON_REMOTE_ID
static constexpr int NON_REMOTE_ID
Definition
loaded_deck.h:24
LoadedDeck::LoadInfo::isEmpty
bool isEmpty() const
Definition
loaded_deck.cpp:3
LoadedDeck::LoadInfo::fileName
QString fileName
Definition
loaded_deck.h:26
LoadedDeck::LoadInfo::fileFormat
DeckFileFormat::Format fileFormat
Definition
loaded_deck.h:27
LoadedDeck::LoadInfo::remoteDeckId
int remoteDeckId
Definition
loaded_deck.h:28
LoadedDeck
Represents a deck that was loaded from somewhere. Contains the DeckList itself, as well as info about...
Definition
loaded_deck.h:14
LoadedDeck::deckList
DeckList deckList
The decklist itself.
Definition
loaded_deck.h:33
LoadedDeck::lastLoadInfo
LoadInfo lastLoadInfo
info about where the deck was loaded from
Definition
loaded_deck.h:34
LoadedDeck::isEmpty
bool isEmpty() const
Definition
loaded_deck.cpp:8
cockatrice
src
interface
deck_loader
loaded_deck.h
Generated by
1.18.0