Cockatrice 2025-11-30-Development-2.11.0-beta.38
A cross-platform virtual tabletop for multiplayer card games
Loading...
Searching...
No Matches
Phases Struct Reference

#include <phase.h>

Collaboration diagram for Phases:
[legend]

Static Public Member Functions

static Phase getPhase (int)
static int getLastSubphase (int phase)

Static Public Attributes

static const int phaseTypesCount = 11
static const Phase unknownPhase
static const Phase phases [phaseTypesCount]
static const QVector< int > subPhasesEnd = getSubPhasesEnd()

Member Function Documentation

◆ getLastSubphase()

int Phases::getLastSubphase ( int phase)
static
Here is the caller graph for this function:

◆ getPhase()

Phase Phases::getPhase ( int phase)
static
Here is the caller graph for this function:

Member Data Documentation

◆ phases

const Phase Phases::phases
static
Initial value:
= {
{QT_TRANSLATE_NOOP("Phase", "Untap"), "green", "untap_step"},
{QT_TRANSLATE_NOOP("Phase", "Upkeep"), "green", "upkeep_step"},
{QT_TRANSLATE_NOOP("Phase", "Draw"), "green", "draw_step"},
{QT_TRANSLATE_NOOP("Phase", "First Main"), "blue", "main_1"},
{QT_TRANSLATE_NOOP("Phase", "Beginning of Combat"), "red", "start_combat"},
{QT_TRANSLATE_NOOP("Phase", "Declare Attackers"), "red", "attack_step"},
{QT_TRANSLATE_NOOP("Phase", "Declare Blockers"), "red", "block_step"},
{QT_TRANSLATE_NOOP("Phase", "Combat Damage"), "red", "damage_step"},
{QT_TRANSLATE_NOOP("Phase", "End of Combat"), "red", "end_combat"},
{QT_TRANSLATE_NOOP("Phase", "Second Main"), "blue", "main_2"},
{QT_TRANSLATE_NOOP("Phase", "End/Cleanup"), "green", "end_step"}}

◆ phaseTypesCount

const int Phases::phaseTypesCount = 11
static

◆ subPhasesEnd

const QVector< int > Phases::subPhasesEnd = getSubPhasesEnd()
static

◆ unknownPhase

const Phase Phases::unknownPhase
static

The documentation for this struct was generated from the following files: