59 return LanguageSet{1} <<
static_cast<unsigned>(std::to_underlying(language));
181 std::uint32_t scout_id,
182 std::span<const LeagueID> countries);
192 std::uint8_t judging_ability,
193 std::span<const TargetCountry> countries,
194 LeagueID league, std::uint32_t league_days);
Language
Enum representing supported languages in the game.
Definition languages.h:24
Generation of scout backgrounds and the effectiveness model. [P].
constexpr float LANGUAGE_BARRIER
Definition scout_expertise.h:167
constexpr float MIN_MULTIPLIER
Definition scout_expertise.h:160
constexpr float KNOWS_LEAGUE
Definition scout_expertise.h:164
ScoutExpertise generate(Language nationality, std::uint64_t world_seed, std::uint32_t scout_id, std::span< const LeagueID > countries)
Definition scout_expertise.cpp:244
constexpr std::uint16_t MAX_LEAGUE_DAYS
Definition scout_expertise.h:171
constexpr float FAR_FROM_HOME
Definition scout_expertise.h:168
constexpr float FULL_EXPERIENCE_DAYS
Definition scout_expertise.h:169
constexpr float HOME_COUNTRY
Definition scout_expertise.h:163
ScoutEffectiveness compute(const ScoutExpertise &expertise, std::uint8_t judging_ability, std::span< const TargetCountry > countries, LeagueID league, std::uint32_t league_days)
Definition scout_expertise.cpp:296
constexpr float MAX_MULTIPLIER
Definition scout_expertise.h:161
constexpr float SPEAKS_LANGUAGE
Definition scout_expertise.h:166
constexpr std::uint16_t LANGUAGE_LEARNED_DAYS
Definition scout_expertise.h:170
constexpr float JUDGING_PER_POINT
Definition scout_expertise.h:162
constexpr float KNOWS_COUNTRY
Definition scout_expertise.h:165
EffectFactorKind
Kind of a line of the effectiveness breakdown.
Definition scout_expertise.h:115
Language countryNationality(LeagueID country)
Definition scout_expertise.cpp:225
Continent homeContinent(Language nationality)
Definition scout_expertise.cpp:204
std::uint32_t LanguageSet
Definition scout_expertise.h:55
SpokenLanguage nativeLanguage(Language nationality)
Definition scout_expertise.cpp:138
constexpr LanguageSet languageBit(SpokenLanguage language)
Definition scout_expertise.h:57
constexpr bool speaks(LanguageSet languages, SpokenLanguage language)
Definition scout_expertise.h:62
Continent countryContinent(LeagueID country)
Definition scout_expertise.cpp:235
const char * spokenLanguageKey(SpokenLanguage language)
Definition scout_expertise.cpp:101
SpokenLanguage
Languages a scout can speak (bit positions are persisted).
Definition scout_expertise.h:25
SpokenLanguage countryLanguage(LeagueID country)
Definition scout_expertise.cpp:230
Continent
Continents (values are shown, not persisted).
Definition scout_expertise.h:72
const char * continentKey(Continent continent)
Definition scout_expertise.cpp:120
One line of the breakdown, e.g. "Speaks Portuguese +10%".
Definition scout_expertise.h:127
std::uint32_t subject
Definition scout_expertise.h:130
EffectFactorKind kind
Definition scout_expertise.h:128
float delta
Definition scout_expertise.h:129
How well a scout will do on an assignment.
Definition scout_expertise.h:141
std::vector< EffectFactor > factors
Definition scout_expertise.h:143
float multiplier
Definition scout_expertise.h:142
Where a scout comes from and what he knows.
Definition scout_expertise.h:107
LanguageSet languages
Definition scout_expertise.h:109
Language nationality
Definition scout_expertise.h:108
std::map< LeagueID, std::uint16_t > league_days
Definition scout_expertise.h:110
A country covered by an assignment and the scout's history there.
Definition scout_expertise.h:148
LeagueID country
Definition scout_expertise.h:149
float weight
Definition scout_expertise.h:150
std::uint32_t country_days
Definition scout_expertise.h:151
uint8_t LeagueID
Type alias for League identifiers.
Definition types.h:15