Player12
An open source football management simulator
Loading...
Searching...
No Matches
DrawCeremonyDialog Class Reference

Modal that reveals a draw already made, one tie at a time. More...

#include <draw_ceremony_dialog.h>

Classes

struct  Row
 

Public Member Functions

void open (const DrawCeremony &ceremony, const GameController &controller)
 
void render (GUIView *view)
 
bool isOpen () const
 
std::size_t shownCount () const
 
std::size_t revealCount () const
 
void revealAll ()
 

Private Member Functions

void renderRow (GUIView *view, const Row &row, std::size_t index, float alpha)
 

Private Attributes

bool open_requested = false
 
bool visible = false
 
bool skipped = false
 
float elapsed = 0.0f
 
int speed_index = 0
 
std::size_t last_shown = 0
 
std::string title
 
std::string subtitle
 
bool league_phase = false
 
std::vector< Row > rows
 

Detailed Description

Modal that reveals a draw already made, one tie at a time.

Self-contained: keep one instance in the hosting screen, call open() with a ceremony and render() every frame. The ties appear one by one at the chosen speed; Reveal all shows the rest at once and Reduced motion shows everything straight away. Clubs open their squad list; nothing in the game changes.

Member Function Documentation

◆ isOpen()

bool DrawCeremonyDialog::isOpen ( ) const
inline

◆ open()

void DrawCeremonyDialog::open ( const DrawCeremony &  ceremony,
const GameController &  controller 
)

◆ render()

void DrawCeremonyDialog::render ( GUIView *  view)

◆ renderRow()

void DrawCeremonyDialog::renderRow ( GUIView *  view,
const Row &  row,
std::size_t  index,
float  alpha 
)
private

◆ revealAll()

void DrawCeremonyDialog::revealAll ( )
inline

Shows every remaining tie at once.

◆ revealCount()

std::size_t DrawCeremonyDialog::revealCount ( ) const
inline

◆ shownCount()

std::size_t DrawCeremonyDialog::shownCount ( ) const

Ties shown so far (all of them once revealed or skipped).

Member Data Documentation

◆ elapsed

float DrawCeremonyDialog::elapsed = 0.0f
private

◆ last_shown

std::size_t DrawCeremonyDialog::last_shown = 0
private

◆ league_phase

bool DrawCeremonyDialog::league_phase = false
private

◆ open_requested

bool DrawCeremonyDialog::open_requested = false
private

◆ rows

std::vector<Row> DrawCeremonyDialog::rows
private

◆ skipped

bool DrawCeremonyDialog::skipped = false
private

◆ speed_index

int DrawCeremonyDialog::speed_index = 0
private

◆ subtitle

std::string DrawCeremonyDialog::subtitle
private

◆ title

std::string DrawCeremonyDialog::title
private

◆ visible

bool DrawCeremonyDialog::visible = false
private

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