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
phase.h
Go to the documentation of this file.
1
6
7
#ifndef PHASE_H
8
#define PHASE_H
9
10
#include <QCoreApplication>
11
#include <QString>
12
#include <QVector>
13
14
class
Phase
15
{
16
Q_DECLARE_TR_FUNCTIONS(
Phase
)
17
18
QString
name
;
19
20
public:
21
QString
color
,
soundFileName
;
22
Phase
(const QString &_name, const QString &_color, const QString &_soundFileName);
23
24
QString
getName
() const;
25
};
26
27
struct
Phases
28
{
29
const
static
int
phaseTypesCount
= 11;
30
const
static
Phase
unknownPhase
;
31
const
static
Phase
phases
[
phaseTypesCount
];
32
const
static
QVector<int>
subPhasesEnd
;
33
34
static
Phase
getPhase
(
int
);
35
static
int
getLastSubphase
(
int
phase);
36
};
37
38
#endif
// PHASE_H
Phase
Definition
phase.h:15
Phase::getName
QString getName() const
Definition
phase.cpp:16
Phase::soundFileName
QString soundFileName
Definition
phase.h:21
Phase::name
QString name
Definition
phase.h:18
Phase::color
QString color
Definition
phase.h:21
Phase::Phase
Phase(const QString &_name, const QString &_color, const QString &_soundFileName)
Definition
phase.cpp:8
Phases
Definition
phase.h:28
Phases::getPhase
static Phase getPhase(int)
Definition
phase.cpp:21
Phases::subPhasesEnd
static const QVector< int > subPhasesEnd
Definition
phase.h:32
Phases::phaseTypesCount
static const int phaseTypesCount
Definition
phase.h:29
Phases::getLastSubphase
static int getLastSubphase(int phase)
Definition
phase.cpp:30
Phases::phases
static const Phase phases[phaseTypesCount]
Definition
phase.h:53
Phases::unknownPhase
static const Phase unknownPhase
Definition
phase.h:30
cockatrice
src
game
phase.h
Generated by
1.18.0