|
Player12
An open source football management simulator
|
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 |
Pure rules of national-team jobs, shared with the tests. [P] marks tunable estimates.
| float NationalJobModel::applicationChance | ( | float | reputation, |
| CoachingLicence | licence, | ||
| float | stature, | ||
| bool | compatriot | ||
| ) |
Chance that a federation offers the job after an application.
| const char * NationalJobModel::applyResultKey | ( | NationalApplyResult | result | ) |
| bool NationalJobModel::canCombineWithClub | ( | float | reputation | ) |
| GameDateValue NationalJobModel::contractEnd | ( | const GameDateValue & | start | ) |
Contract end: 31 July of the first finals summer at least ten months away.
| CoachingLicence NationalJobModel::requiredLicence | ( | float | stature | ) |
Licence a federation asks for.
| float NationalJobModel::resultReputation | ( | Competition | competition, |
| double | expected, | ||
| double | actual | ||
| ) |
| 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.
| 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.
| std::int64_t NationalJobModel::weeklyWage | ( | float | stature | ) |
Weekly wage of a national head coach (whole euros).
|
inlineconstexpr |
A club job and a national team together only for the very famous (rare in real football). [P]
|
inlineconstexpr |
Federations consider managers from a national reputation. [P]