|
Player12
An open source football management simulator
|
"Go on holiday" planner and the assistant's report on return. More...
#include <holiday_dialog.h>
Classes | |
| struct | Line |
Public Member Functions | |
| void | open (GameController &controller) |
| void | showSummary (const GameController &controller, const HolidaySummary &summary) |
| std::optional< HolidayPlan > | render (GameController &controller) |
| bool | isOpen () const |
Private Member Functions | |
| std::optional< HolidayPlan > | renderPlan (GameController &controller) |
| void | renderSummary () |
| void | refreshTarget (const GameController &controller) |
Private Attributes | |
| bool | open_requested = false |
| bool | visible = false |
| bool | showing_summary = false |
| HolidayPlan | plan |
| int | mode = 0 |
| int | bid_mode = 0 |
| std::int64_t | bid_amount = 0 |
| int | crisis_count = 5 |
| std::string | target_text |
| bool | can_leave = false |
| std::string | summary_title |
| std::string | summary_reason |
| ImVec4 | summary_reason_color {} |
| std::vector< Line > | results |
| std::string | table_line |
| std::vector< std::pair< std::string, std::string > > | money_rows |
| std::vector< Line > | moves |
| std::vector< Line > | injuries |
| std::string | filed_line |
"Go on holiday" planner and the assistant's report on return.
The planner chooses how long the manager is away (a date, the next match, the next decision or the end of the transfer window), what brings him back early and which duties the assistant takes over. render() hands the plan back on the frame the manager leaves; the career hub runs it on the Continue machinery and calls showSummary() when it is done.
|
inline |
| void HolidayDialog::open | ( | GameController & | controller | ) |
Opens the planner with the career's saved preferences.
|
private |
| std::optional< HolidayPlan > HolidayDialog::render | ( | GameController & | controller | ) |
Draws the dialog; returns the plan on the frame the manager leaves.
|
private |
|
private |
| void HolidayDialog::showSummary | ( | const GameController & | controller, |
| const HolidaySummary & | summary | ||
| ) |
Opens the report of a finished holiday.
|
private |
|
private |
0 = key players, 1 = from an amount.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |