60 std::array<std::string, SET_PIECE_DUTY_COUNT>
automatic;
61 std::array<std::string, SET_PIECE_DUTY_COUNT>
current;
Manages the core game logic, interacting with teams, leagues, and players.
Definition game_controller.h:70
Captain, vice-captain and set-piece takers of the managed lineup: one dropdown per duty listing the s...
Definition set_pieces_dialog.h:25
bool render(GameController &controller)
Draws the dialog while it is open.
Definition set_pieces_dialog.cpp:123
std::array< std::string, SET_PIECE_DUTY_COUNT > current
Definition set_pieces_dialog.h:61
void rebuild(const GameController &controller)
Definition set_pieces_dialog.cpp:46
std::array< std::vector< Choice >, SET_PIECE_DUTY_COUNT > choices
Definition set_pieces_dialog.h:59
bool close_requested
Definition set_pieces_dialog.h:58
std::array< std::string, SET_PIECE_DUTY_COUNT > automatic
Definition set_pieces_dialog.h:60
bool open_requested
Definition set_pieces_dialog.h:57
void open()
Opens the dialog on the next render().
Definition set_pieces_dialog.h:28
void close()
Closes the dialog on the next render().
Definition set_pieces_dialog.h:35
friend class GameFlowTest_GUIFlowLifecycle_Test
Definition set_pieces_dialog.h:47
static std::string captainSummary(const GameController &controller)
One-line summary for the lineup toolbar ("Captain: Name").
Definition set_pieces_dialog.cpp:37
constexpr size_t SET_PIECE_DUTY_COUNT
Definition lineup.h:38
Definition set_pieces_dialog.h:50
std::string label
Definition set_pieces_dialog.h:52
uint32_t PlayerID
Type alias for Player identifiers.
Definition types.h:21