Player12
An open source football management simulator
Loading...
Searching...
No Matches
NationalJobModel Namespace Reference

Functions

float stature (std::size_t rank, std::size_t nations)
 
CoachingLicence requiredLicence (float stature)
 
float applicationChance (float reputation, CoachingLicence licence, float stature, bool compatriot)
 
std::int64_t weeklyWage (float stature)
 
bool canCombineWithClub (float reputation)
 
GameDateValue contractEnd (const GameDateValue &start)
 
float resultReputation (Competition competition, double expected, double actual)
 
const char * applyResultKey (NationalApplyResult result)
 
float resultReputation (International::Competition competition, double expected, double actual)
 

Variables

constexpr float MIN_REPUTATION = 45.0f
 
constexpr float DUAL_ROLE_REPUTATION = 70.0f
 

Detailed Description

Pure rules of national-team jobs, shared with the tests. [P] marks tunable estimates.

Function Documentation

◆ applicationChance()

float NationalJobModel::applicationChance ( float  reputation,
CoachingLicence  licence,
float  stature,
bool  compatriot 
)

Chance that a federation offers the job after an application.

◆ applyResultKey()

const char * NationalJobModel::applyResultKey ( NationalApplyResult  result)

◆ canCombineWithClub()

bool NationalJobModel::canCombineWithClub ( float  reputation)

◆ contractEnd()

GameDateValue NationalJobModel::contractEnd ( const GameDateValue &  start)

Contract end: 31 July of the first finals summer at least ten months away.

◆ requiredLicence()

CoachingLicence NationalJobModel::requiredLicence ( float  stature)

Licence a federation asks for.

◆ resultReputation() [1/2]

float NationalJobModel::resultReputation ( Competition  competition,
double  expected,
double  actual 
)

◆ resultReputation() [2/2]

float NationalJobModel::resultReputation ( International::Competition  competition,
double  expected,
double  actual 
)

Reputation change after a match: weight by competition times the difference between the result (1, 0.5, 0) and the expected score.

◆ stature()

float NationalJobModel::stature ( std::size_t  rank,
std::size_t  nations 
)

Stature of a national job (club reputation scale) from its world ranking: the best nation about 92, the last about 42.

◆ weeklyWage()

std::int64_t NationalJobModel::weeklyWage ( float  stature)

Weekly wage of a national head coach (whole euros).

Variable Documentation

◆ DUAL_ROLE_REPUTATION

constexpr float NationalJobModel::DUAL_ROLE_REPUTATION = 70.0f
inlineconstexpr

A club job and a national team together only for the very famous (rare in real football). [P]

◆ MIN_REPUTATION

constexpr float NationalJobModel::MIN_REPUTATION = 45.0f
inlineconstexpr

Federations consider managers from a national reputation. [P]