Refactor messagelogwidget (#3875)

This commit is contained in:
kopcion 2020-05-18 00:15:30 +02:00 committed by GitHub
parent 2de863f645
commit 1eea8e9a37
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 77 additions and 80 deletions

25
cockatrice/src/phase.h Normal file
View 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