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
deck_list_memento.h
Go to the documentation of this file.
1
#ifndef COCKATRICE_DECK_LIST_MEMENTO_H
2
#define COCKATRICE_DECK_LIST_MEMENTO_H
3
#include <QString>
4
5
class
DeckListMemento
6
{
7
public
:
8
DeckListMemento
() =
default
;
9
explicit
DeckListMemento
(
const
QString &
memento
,
const
QString &
reason
= QString())
10
:
memento
(
memento
),
reason
(
reason
)
11
{
12
}
13
14
[[nodiscard]] QString
getMemento
()
const
15
{
16
return
memento
;
17
}
18
[[nodiscard]] QString
getReason
()
const
19
{
20
return
reason
;
21
}
22
23
private
:
24
QString
memento
;
25
QString
reason
;
26
};
27
28
#endif
// COCKATRICE_DECK_LIST_MEMENTO_H
DeckListMemento::DeckListMemento
DeckListMemento()=default
DeckListMemento::memento
QString memento
Definition
deck_list_memento.h:24
DeckListMemento::reason
QString reason
Definition
deck_list_memento.h:25
DeckListMemento::DeckListMemento
DeckListMemento(const QString &memento, const QString &reason=QString())
Definition
deck_list_memento.h:9
DeckListMemento::getMemento
QString getMemento() const
Definition
deck_list_memento.h:14
DeckListMemento::getReason
QString getReason() const
Definition
deck_list_memento.h:18
libcockatrice_deck_list
libcockatrice
deck_list
deck_list_memento.h
Generated by
1.18.0