mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-12 13:00:01 -08:00
[Refactor] Move game logic into libcockatrice_game
This commit is contained in:
parent
710dfabea2
commit
7556f6465a
91 changed files with 388 additions and 179 deletions
|
|
@ -1,38 +0,0 @@
|
|||
/**
|
||||
* @file phase.h
|
||||
* @ingroup GameLogic
|
||||
*/
|
||||
//! \todo Document this file.
|
||||
|
||||
#ifndef PHASE_H
|
||||
#define PHASE_H
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include <QString>
|
||||
#include <QVector>
|
||||
|
||||
class Phase
|
||||
{
|
||||
Q_DECLARE_TR_FUNCTIONS(Phase)
|
||||
|
||||
QString name;
|
||||
|
||||
public:
|
||||
QString color, soundFileName;
|
||||
Phase(const QString &_name, const QString &_color, const QString &_soundFileName);
|
||||
|
||||
QString getName() const;
|
||||
};
|
||||
|
||||
struct Phases
|
||||
{
|
||||
const static int phaseTypesCount = 11;
|
||||
const static Phase unknownPhase;
|
||||
const static Phase phases[phaseTypesCount];
|
||||
const static QVector<int> subPhasesEnd;
|
||||
|
||||
static Phase getPhase(int);
|
||||
static int getLastSubphase(int phase);
|
||||
};
|
||||
|
||||
#endif // PHASE_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue