|
| uint32_t | Competitions::mixSeed (uint32_t a, uint32_t b, uint32_t c) |
| |
| LeagueID | Competitions::rootLeague (const GameData &gamedata, LeagueID league_id) |
| |
| uint8_t | Competitions::leagueTier (const GameData &gamedata, LeagueID league_id) |
| |
| std::vector< LeagueID > | Competitions::countryRoots (const GameData &gamedata) |
| |
| std::vector< LeagueID > | Competitions::countryLeagues (const GameData &gamedata, LeagueID root) |
| |
| std::vector< TeamID > | Competitions::cupEntrants (const GameData &gamedata, LeagueID root) |
| |
| std::string | Competitions::cupName (const GameData &gamedata, LeagueID root) |
| |
| std::string | Competitions::leagueName (const League &league) |
| |
| std::string | Competitions::leagueNameArg (const League &league) |
| |
| uint8_t | Competitions::cupRoundCount (size_t entrants) |
| |
| const char * | Competitions::cupRoundLabelKey (uint8_t stage, uint8_t total_rounds) |
| |
| CupStatus | Competitions::cupStatus (const Calendar &calendar, const GameData &gamedata, LeagueID root) |
| |
| void | Competitions::scheduleCupFirstRounds (Calendar &calendar, const GameData &gamedata, uint16_t season_year) |
| | Schedules round 1 of every domestic cup.
|
| |
| size_t | Competitions::drawPendingCupRounds (Calendar &calendar, const GameData &gamedata, uint16_t season_year, const GameDateValue &today) |
| | Draws the next round of every cup whose latest round is complete.
|
| |
| std::optional< CupDraw > | Competitions::cupDraw (const Calendar &calendar, const GameData &gamedata, LeagueID root, uint8_t stage) |
| | Read-only view of a drawn round of the cup of root (nullopt when that round has not been drawn). Never changes the calendar.
|
| |
| float | Competitions::penaltyConversionProbability (float shooting, float goalkeeping) |
| |
| ShootoutResult | Competitions::simulateShootout (const std::vector< float > &home_takers, const std::vector< float > &away_takers, std::mt19937 &rng) |
| | Best-of-five shootout with early finish, then sudden death.
|
| |
| KnockoutResolution | Competitions::resolveDrawnKnockout (const Team &home, const Team &away, const StatsConfig &stats_config, uint32_t seed) |
| |
| std::vector< LeagueMovement > | Competitions::computeLeagueMovements (const GameData &gamedata, const std::unordered_map< LeagueID, std::vector< StandingRow > > &standings) |
| | Swaps the bottom clubs of each parent league with the top clubs of its child division(s), using final standings.
|
| |
| void | Competitions::applyLeagueMovements (GameData &gamedata, const std::vector< LeagueMovement > &movements) |
| |