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

Generation of scout backgrounds and the effectiveness model. [P]. More...

Functions

ScoutExpertise generate (Language nationality, std::uint64_t world_seed, std::uint32_t scout_id, std::span< const LeagueID > countries)
 
ScoutEffectiveness compute (const ScoutExpertise &expertise, std::uint8_t judging_ability, std::span< const TargetCountry > countries, LeagueID league, std::uint32_t league_days)
 

Variables

constexpr float MIN_MULTIPLIER = 0.6f
 
constexpr float MAX_MULTIPLIER = 1.5f
 
constexpr float JUDGING_PER_POINT = 0.004f
 
constexpr float HOME_COUNTRY = 0.20f
 
constexpr float KNOWS_LEAGUE = 0.20f
 
constexpr float KNOWS_COUNTRY = 0.10f
 
constexpr float SPEAKS_LANGUAGE = 0.10f
 
constexpr float LANGUAGE_BARRIER = -0.15f
 
constexpr float FAR_FROM_HOME = -0.10f
 
constexpr float FULL_EXPERIENCE_DAYS = 365.0f
 
constexpr std::uint16_t LANGUAGE_LEARNED_DAYS = 540
 
constexpr std::uint16_t MAX_LEAGUE_DAYS = 9'999
 

Detailed Description

Generation of scout backgrounds and the effectiveness model. [P].

Function Documentation

◆ compute()

ScoutEffectiveness ScoutExpertiseModel::compute ( const ScoutExpertise &  expertise,
std::uint8_t  judging_ability,
std::span< const TargetCountry >  countries,
LeagueID  league,
std::uint32_t  league_days 
)

Effectiveness = 1 + judging + home + league/country experience + language +- distance, clamped to [MIN_MULTIPLIER, MAX_MULTIPLIER]. Country terms are weighted by the countries' shares of the assignment.

Parameters
leagueSpecific league of the assignment (0 = none) and league_days the scout's days there.

◆ generate()

ScoutExpertise ScoutExpertiseModel::generate ( Language  nationality,
std::uint64_t  world_seed,
std::uint32_t  scout_id,
std::span< const LeagueID >  countries 
)

Deterministic background of a scout: languages from his nationality (native plus plausible second languages), usually a spell in his home country's top league and up to two leagues abroad, preferring countries whose language he speaks or that are on his continent.

Parameters
countriesTop league ids of the world's countries.

Variable Documentation

◆ FAR_FROM_HOME

constexpr float ScoutExpertiseModel::FAR_FROM_HOME = -0.10f
constexpr

Another continent.

◆ FULL_EXPERIENCE_DAYS

constexpr float ScoutExpertiseModel::FULL_EXPERIENCE_DAYS = 365.0f
constexpr

◆ HOME_COUNTRY

constexpr float ScoutExpertiseModel::HOME_COUNTRY = 0.20f
constexpr

◆ JUDGING_PER_POINT

constexpr float ScoutExpertiseModel::JUDGING_PER_POINT = 0.004f
constexpr

+-20% across 1-100.

◆ KNOWS_COUNTRY

constexpr float ScoutExpertiseModel::KNOWS_COUNTRY = 0.10f
constexpr

After a year there.

◆ KNOWS_LEAGUE

constexpr float ScoutExpertiseModel::KNOWS_LEAGUE = 0.20f
constexpr

After a year there.

◆ LANGUAGE_BARRIER

constexpr float ScoutExpertiseModel::LANGUAGE_BARRIER = -0.15f
constexpr

◆ LANGUAGE_LEARNED_DAYS

constexpr std::uint16_t ScoutExpertiseModel::LANGUAGE_LEARNED_DAYS = 540
constexpr

Picked up abroad.

◆ MAX_LEAGUE_DAYS

constexpr std::uint16_t ScoutExpertiseModel::MAX_LEAGUE_DAYS = 9'999
constexpr

◆ MAX_MULTIPLIER

constexpr float ScoutExpertiseModel::MAX_MULTIPLIER = 1.5f
constexpr

◆ MIN_MULTIPLIER

constexpr float ScoutExpertiseModel::MIN_MULTIPLIER = 0.6f
constexpr

◆ SPEAKS_LANGUAGE

constexpr float ScoutExpertiseModel::SPEAKS_LANGUAGE = 0.10f
constexpr