Player12
An open source football management simulator
Loading...
Searching...
No Matches
WorldTuning::Development Struct Referencefinal

#include <world_tuning.h>

Static Public Member Functions

static constexpr float physicalDecline (int age)
 
static constexpr float technicalDecline (int age)
 
static constexpr float craftChange (int age)
 
static constexpr float goalkeepingDecline (int age)
 

Static Public Attributes

static constexpr float GROWTH_RATE_TEEN = 0.30f
 
static constexpr float GROWTH_RATE_20_21 = 0.42f
 
static constexpr float GROWTH_RATE_22_23 = 0.38f
 
static constexpr float GROWTH_RATE_24_25 = 0.28f
 
static constexpr float GROWTH_RATE_26_28 = 0.08f
 
static constexpr float MINUTES_FOR_FULL_GROWTH = 1800.0f
 
static constexpr float ENDURANCE_FACTOR = 0.5f
 
static constexpr float LATE_PEAK_ROLE_FACTOR = 0.6f
 
static constexpr int LATE_PEAK_ROLE_UNTIL = 33
 

Member Function Documentation

◆ craftChange()

static constexpr float WorldTuning::Development::craftChange ( int  age)
inlinestaticconstexpr

Passing and vision keep improving into the early 30s and fade late (negative = decline). [S: pass accuracy +0.25%/yr of age]

◆ goalkeepingDecline()

static constexpr float WorldTuning::Development::goalkeepingDecline ( int  age)
inlinestaticconstexpr

Goalkeeping peaks later and holds to the mid-30s. [S: GK peak ~31, elite keepers retire at 38-40]

◆ physicalDecline()

static constexpr float WorldTuning::Development::physicalDecline ( int  age)
inlinestaticconstexpr

Yearly decline of pace and strength: from about 28, steeper after 30 and 32. [S: high-intensity efforts -1.8%/yr, speed peaks at 25.7 with a clear drop after 32 (Branquinho 2025, LaLiga 2012-20)]

◆ technicalDecline()

static constexpr float WorldTuning::Development::technicalDecline ( int  age)
inlinestaticconstexpr

Technical skills hold until about 31. [P]

Member Data Documentation

◆ ENDURANCE_FACTOR

constexpr float WorldTuning::Development::ENDURANCE_FACTOR = 0.5f
staticconstexpr

Endurance fades at about half that rate. [S: total distance -0.56%/yr]

◆ GROWTH_RATE_20_21

constexpr float WorldTuning::Development::GROWTH_RATE_20_21 = 0.42f
staticconstexpr

◆ GROWTH_RATE_22_23

constexpr float WorldTuning::Development::GROWTH_RATE_22_23 = 0.38f
staticconstexpr

◆ GROWTH_RATE_24_25

constexpr float WorldTuning::Development::GROWTH_RATE_24_25 = 0.28f
staticconstexpr

◆ GROWTH_RATE_26_28

constexpr float WorldTuning::Development::GROWTH_RATE_26_28 = 0.08f
staticconstexpr

◆ GROWTH_RATE_TEEN

constexpr float WorldTuning::Development::GROWTH_RATE_TEEN = 0.30f
staticconstexpr

Share of the potential gap closed per season by age. [P, fitted to +4 / +3 / +1.5 overall per season at 16-18 / 19-21 / 22-24]

◆ LATE_PEAK_ROLE_FACTOR

constexpr float WorldTuning::Development::LATE_PEAK_ROLE_FACTOR = 0.6f
staticconstexpr

Goalkeepers and centre-backs age at this share of the physical and technical rates until 33. [S: GK and CB hold their peak to ~31]

◆ LATE_PEAK_ROLE_UNTIL

constexpr int WorldTuning::Development::LATE_PEAK_ROLE_UNTIL = 33
staticconstexpr

◆ MINUTES_FOR_FULL_GROWTH

constexpr float WorldTuning::Development::MINUTES_FOR_FULL_GROWTH = 1800.0f
staticconstexpr

Minutes factor M = 0.6 + 0.4 * min(1, minutes / 1800). [P]


The documentation for this struct was generated from the following file: