Player12
An open source football management simulator
Loading...
Searching...
No Matches
world_tuning.h File Reference

Named parameters of the club/world simulation. More...

#include <array>
#include <cstdint>
#include "global/languages.h"
#include "global/types.h"

Go to the source code of this file.

Classes

struct  LeagueShape
 How unequal the clubs of a league are in first-team quality. More...
 
struct  LeagueMatchStyle
 Real match averages of a league (the engine is steered towards them through the per-match context). More...
 
struct  LeagueProfile
 Economic and sporting profile of a league. More...
 
struct  WorldTuning
 
struct  WorldTuning::Generation
 
struct  WorldTuning::Finance
 
struct  WorldTuning::Fitness
 
struct  WorldTuning::Development
 
struct  WorldTuning::MatchContext
 
struct  WorldTuning::Morale
 
struct  WorldTuning::Youth
 
struct  WorldTuning::FreeAgents
 
struct  WorldTuning::Board
 

Enumerations

enum class  WorldRegion : std::uint8_t { Europe , EasternEurope , NorthAmerica , SouthAmerica }
 Football region of a league (pre-season tours stay inside it). More...
 

Functions

constexpr const LeagueProfile & leagueProfile (LeagueID league_id)
 

Variables

constexpr std::array< LeagueProfile, 22 > LEAGUE_PROFILES
 
constexpr LeagueProfile DEFAULT_LEAGUE_PROFILE
 

Detailed Description

Named parameters of the club/world simulation.

Values marked [S] are anchored to published data (UEFA ECFIL 2025 revenue mix and wage ratios, UEFA Elite Club Injury Study, Ekstrand 2020 layoffs, Branquinho 2025 physical ageing). Values marked [P] are designer priors chosen to be consistent with nearby sourced facts; tune them by calibration.

Enumeration Type Documentation

◆ WorldRegion

enum class WorldRegion : std::uint8_t
strong

Football region of a league (pre-season tours stay inside it).

Enumerator
Europe 
EasternEurope 
NorthAmerica 
SouthAmerica 

Function Documentation

◆ leagueProfile()

constexpr const LeagueProfile & leagueProfile ( LeagueID  league_id)
constexpr

Returns the profile of league_id or the default profile.

Variable Documentation

◆ DEFAULT_LEAGUE_PROFILE

constexpr LeagueProfile DEFAULT_LEAGUE_PROFILE
inlineconstexpr
Initial value:
= {
0, 50,
10e6f, 0.25f,
0.00f, 0.20f,
0.55f, 0.80f,
8000.0f, Language::EN,
0.80f, {4.0f, 0, 0.0f, 0.0f},
0.50f, {2.80f, 4.30f, 0.30f, 14.0f}}

Profile used for leagues that are not listed above. [P]

◆ LEAGUE_PROFILES

constexpr std::array<LeagueProfile, 22> LEAGUE_PROFILES
inlineconstexpr

League profiles keyed by the ids in assets/user_made_data/leagues.

Revenue, mix and wage ratios of the top five use ECFIL 2025 (FY2024) [S] with France after its 2024-25 TV collapse (wages ~80%); Brazil, Russia and the USA use national reports (R$545m, EUR 61m, ~US$65-80m per club) [S/P]. Second tiers: Championship ~EUR 46m with wages above 90% of revenue, a healthy 2. Bundesliga (~EUR 50m, wages ~40%), Serie B EUR 24m at 82% [S]; the rest are [P] estimates. Crowds and stadium fill follow the 2024-25 league averages (England and Germany sell out, Russia fills 34%, Liga de Expansion under 20%) [S]. Domestic shares follow CIES expatriate shares (England, Italy and MLS ~40% domestic, Brazil and Argentina ~90%); second tiers are assumed to have about half the expatriates [S/P].

Shapes are fitted to the 20-slot points curves; coach changes per club-season follow LMA/CIES counts (MLS 0.35 ... Serie B and Brazil 0.9-1.0) [S/P]; match styles are football-data 2022-26 averages (Brazil, Argentina, Mexico, the USA and Russia partly [P]). [S: realism-research-2 1, 3.4, 5, 7]

Every league needs a row: second divisions share their country's nationality and region and sit about 20-30 reputation points below the top division, with no continental income.