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

Captain, vice-captain and set-piece takers of the managed lineup: one dropdown per duty listing the starters (best suited first), with an automatic choice that names who would take it. More...

#include <set_pieces_dialog.h>

Classes

struct  Choice
 

Public Member Functions

void open ()
 Opens the dialog on the next render().
 
void close ()
 Closes the dialog on the next render().
 
bool render (GameController &controller)
 Draws the dialog while it is open.
 

Static Public Member Functions

static std::string captainSummary (const GameController &controller)
 One-line summary for the lineup toolbar ("Captain: Name").
 

Private Member Functions

void rebuild (const GameController &controller)
 

Private Attributes

bool open_requested = false
 
bool close_requested = false
 
std::array< std::vector< Choice >, SET_PIECE_DUTY_COUNT > choices
 
std::array< std::string, SET_PIECE_DUTY_COUNT > automatic
 
std::array< std::string, SET_PIECE_DUTY_COUNT > current
 

Friends

class GameFlowTest_GUIFlowLifecycle_Test
 

Detailed Description

Captain, vice-captain and set-piece takers of the managed lineup: one dropdown per duty listing the starters (best suited first), with an automatic choice that names who would take it.

Member Function Documentation

◆ captainSummary()

std::string SetPiecesDialog::captainSummary ( const GameController &  controller)
static

One-line summary for the lineup toolbar ("Captain: Name").

◆ close()

void SetPiecesDialog::close ( )
inline

Closes the dialog on the next render().

◆ open()

void SetPiecesDialog::open ( )
inline

Opens the dialog on the next render().

◆ rebuild()

void SetPiecesDialog::rebuild ( const GameController &  controller)
private

◆ render()

bool SetPiecesDialog::render ( GameController &  controller)

Draws the dialog while it is open.

Returns
True on the frame a designation changed.

Friends And Related Symbol Documentation

◆ GameFlowTest_GUIFlowLifecycle_Test

friend class GameFlowTest_GUIFlowLifecycle_Test
friend

Member Data Documentation

◆ automatic

std::array<std::string, SET_PIECE_DUTY_COUNT> SetPiecesDialog::automatic
private

Previews.

◆ choices

std::array<std::vector<Choice>, SET_PIECE_DUTY_COUNT> SetPiecesDialog::choices
private

◆ close_requested

bool SetPiecesDialog::close_requested = false
private

◆ current

std::array<std::string, SET_PIECE_DUTY_COUNT> SetPiecesDialog::current
private

Previews.

◆ open_requested

bool SetPiecesDialog::open_requested = false
private

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