|
Player12
An open source football management simulator
|
#include <cstdint>#include <memory>#include <optional>#include <string>#include <vector>#include "global/types.h"#include "model/gamedate.h"Go to the source code of this file.
Classes | |
| struct | HolidayPreferences |
| What stops a holiday early and what the assistant takes over (persisted with the save). More... | |
| struct | HolidayPlan |
| A holiday request. More... | |
| struct | HolidayOffer |
| A new offer for a managed player seen during the holiday. More... | |
| struct | HolidayInjury |
| A managed player injured during the holiday. More... | |
| struct | HolidayDay |
| What changed on one simulated day (input of the stop rules). More... | |
| struct | HolidayResult |
| A managed result during the holiday. More... | |
| struct | HolidayMove |
| A transfer in or out of the managed club during the holiday. More... | |
| struct | HolidaySummary |
| The assistant's report when the manager returns. More... | |
Namespaces | |
| namespace | Holiday |
| Targets and stop rules of "continue until". | |
Enumerations | |
| enum class | HolidayMode : std::uint8_t { UntilDate = 0 , NextMatch , NextDecision , WindowEnd , COUNT } |
| How long the manager is away. More... | |
| enum class | HolidayStop : std::uint8_t { Completed = 0 , Dismissed , SackingWarning , BigBid , KeyPlayerInjured , InjuryCrisis , Decision , DayLimit , Interrupted } |
| Why the holiday ended. More... | |
Functions | |
| std::optional< GameDateValue > | Holiday::targetDate (const HolidayPlan &plan, const GameDateValue &today, const std::optional< GameDateValue > &next_match, LeagueID league) |
| GameDateValue | Holiday::windowEndDate (LeagueID league, const GameDateValue &today) |
| std::optional< HolidayStop > | Holiday::checkStop (const HolidayPlan &plan, const HolidayDay &day) |
| const char * | Holiday::stopKey (HolidayStop stop) |
| HolidayPreferences | Holiday::loadPreferences (const std::shared_ptr< DatabaseConnection > &db_conn) |
| void | Holiday::savePreferences (const std::shared_ptr< DatabaseConnection > &db_conn, const HolidayPreferences &preferences) |
Variables | |
| constexpr std::uint16_t | Holiday::KEY_INJURY_DAYS = 14 |
|
strong |
|
strong |