mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-01 19:13:55 -07:00
Refactor messagelogwidget (#3875)
This commit is contained in:
parent
2de863f645
commit
1eea8e9a37
5 changed files with 77 additions and 80 deletions
25
cockatrice/src/phase.h
Normal file
25
cockatrice/src/phase.h
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
#ifndef PHASE_H
|
||||
#define PHASE_H
|
||||
|
||||
#include <QString>
|
||||
#include <QtCore>
|
||||
|
||||
class Phase
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(Phase)
|
||||
|
||||
public:
|
||||
QString name, color, soundFileName;
|
||||
Phase(const char *_name, QString _color, QString _soundFileName);
|
||||
};
|
||||
|
||||
struct Phases
|
||||
{
|
||||
const static int phaseTypesCount = 11;
|
||||
const static Phase unknownPhase;
|
||||
const static Phase phases[phaseTypesCount];
|
||||
|
||||
static Phase getPhase(int);
|
||||
};
|
||||
|
||||
#endif // PHASE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue