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
commander_spellbook_bracket_explainer.h
Go to the documentation of this file.
1
#ifndef COCKATRICE_COMMANDER_SPELLBOOK_BRACKET_EXPLAINER_H
2
#define COCKATRICE_COMMANDER_SPELLBOOK_BRACKET_EXPLAINER_H
3
4
#include <QList>
5
#include <QString>
6
#include <QStringList>
7
#include <QtGlobal>
8
9
struct
EstimateBracketResult
;
10
11
namespace
CommanderBracketNames
12
{
13
inline
const
char
*
CommanderSpellbookBracketNames
= QT_TR_NOOP(
"CommanderSpellbook"
);
14
inline
const
char
*
OfficialCommanderBracketNames
= QT_TR_NOOP(
"Official (approximate)"
);
15
inline
const
char
*
Explainer
= QT_TR_NOOP(
16
"The bracket system combines both objective data, as well as subjective play experience to estimate a "
17
"bracket for a deck.\nCommanderSpellbook's estimation is algorithmical, which means that it can only operate "
18
"on the objective data, not the subjective intent. \nThey have chosen to represent this by defining their "
19
"own bracket system which matches their algorithm.\n"
20
"This custom bracket system maps loosely to the standard system. \nYou may choose to use these mapped "
21
"standardized names if these are more familiar to you, however, you should keep in mind that these are just "
22
"rough estimations.\n\nAlways consider the subjective factors of the bracket system when determing a deck's "
23
"final bracket!"
);
24
}
// namespace CommanderBracketNames
25
26
struct
BracketExplanationSection
27
{
28
QString
title
;
29
QStringList
bulletPoints
;
30
};
31
32
struct
BracketExplanation
33
{
34
QString
bracket
;
35
QList<BracketExplanationSection>
sections
;
36
37
bool
isEmpty
()
const
38
{
39
return
sections
.isEmpty();
40
}
41
};
42
43
class
BracketExplainer
44
{
45
public
:
46
static
BracketExplanation
explain
(
const
EstimateBracketResult
&result);
47
};
48
49
#endif
// COCKATRICE_COMMANDER_SPELLBOOK_BRACKET_EXPLAINER_H
BracketExplainer
Definition
commander_spellbook_bracket_explainer.h:44
BracketExplainer::explain
static BracketExplanation explain(const EstimateBracketResult &result)
Definition
commander_spellbook_bracket_explainer.cpp:26
QList
Definition
remote_connection_controller.h:20
CommanderBracketNames
Definition
commander_spellbook_bracket_explainer.h:12
CommanderBracketNames::Explainer
const char * Explainer
Definition
commander_spellbook_bracket_explainer.h:15
CommanderBracketNames::OfficialCommanderBracketNames
const char * OfficialCommanderBracketNames
Definition
commander_spellbook_bracket_explainer.h:14
CommanderBracketNames::CommanderSpellbookBracketNames
const char * CommanderSpellbookBracketNames
Definition
commander_spellbook_bracket_explainer.h:13
BracketExplanationSection
Definition
commander_spellbook_bracket_explainer.h:27
BracketExplanationSection::bulletPoints
QStringList bulletPoints
Definition
commander_spellbook_bracket_explainer.h:29
BracketExplanationSection::title
QString title
Definition
commander_spellbook_bracket_explainer.h:28
BracketExplanation
Definition
commander_spellbook_bracket_explainer.h:33
BracketExplanation::bracket
QString bracket
Definition
commander_spellbook_bracket_explainer.h:34
BracketExplanation::isEmpty
bool isEmpty() const
Definition
commander_spellbook_bracket_explainer.h:37
BracketExplanation::sections
QList< BracketExplanationSection > sections
Definition
commander_spellbook_bracket_explainer.h:35
EstimateBracketResult
Definition
commander_spellbook_estimate_bracket_result.h:12
cockatrice
src
interface
widgets
tabs
api
commander_spellbook
commander_spellbook_bracket_explainer.h
Generated by
1.18.0