#include <array>
#include <cstdint>
#include <functional>
#include <memory>
#include <optional>
#include <string>
#include <unordered_map>
#include <utility>
#include <vector>
#include "global/languages.h"
#include "global/types.h"
#include "model/gamedate.h"
#include "model/player.h"
#include "model/staff.h"
Go to the source code of this file.
|
| namespace | YouthModel |
| | Pure academy rules (tested without a world).
|
| |
|
| enum class | YouthStatus : std::uint8_t { Candidate = 0
, Squad
, Graduated
, Reserve
} |
| | Where an academy player stands (values are persisted). More...
|
| |
| enum class | YouthContract : std::uint8_t { None = 0
, Scholarship
, Professional
} |
| | Contract of an academy player (values are persisted). More...
|
| |
| enum class | IntakeQuality : std::uint8_t { Weak = 0
, Average
, Promising
, Golden
} |
| | Head of youth development's verdict on an intake. More...
|
| |
| enum class | AcademyUpgrade : std::uint8_t { None = 0
, Facilities
, Recruitment
} |
| | Academy investments the board can approve (values are persisted). More...
|
| |
| enum class | YouthActionResult : std::uint8_t {
Ok
, NoClub
, UnknownPlayer
, NotAllowed
,
TooYoung
, TooOld
, OverageFull
} |
| | Outcome of an action on an academy player. More...
|
| |
| enum class | UpgradeRequestResult : std::uint8_t {
Approved
, NoClub
, InProgress
, TooSoon
,
AtMaximum
, BeyondStature
, CannotAfford
, NoConfidence
} |
| | Board answer to an academy investment request. More...
|
| |
|
| IntakeClass | YouthModel::planIntake (const IntakeInputs &inputs, std::uint64_t world_seed, std::uint16_t year, TeamID team_id) |
| |
| IntakePreview | YouthModel::summarize (const IntakeClass &intake) |
| |
| float | YouthModel::regionTalent (Language country) |
| |
| int | YouthModel::firstProfessionalAge (Language country) |
| |
| float | YouthModel::academyGrade (const IntakeInputs &inputs) |
| |
| std::size_t | YouthModel::u18SquadLimit (float grade) |
| |
| int | YouthModel::computerSignings (float grade, std::size_t candidates) |
| |
| std::uint32_t | YouthModel::scholarshipWage (LeagueID league_id) |
| |
| std::uint8_t | YouthModel::youthContractYears (int age) |
| |
| bool | YouthModel::isHomegrown (int joined_age, int age) |
| |
| YouthActionResult | YouthModel::reserveEligibility (int age, PlayerRole role, const ReserveQuota "a) |
| |
| float | YouthModel::staffProfessionalism (std::uint64_t world_seed, StaffID staff_id) |
| |
| const char * | YouthModel::staffStyleKey (float professionalism) |
| |
| const char * | YouthModel::personalityKey (const PlayerTraits &traits) |
| |
| const char * | YouthModel::qualityKey (IntakeQuality quality) |
| |
| const char * | YouthModel::contractKey (YouthContract contract) |
| |
| const char * | YouthModel::requestResultKey (UpgradeRequestResult result) |
| |
| const char * | YouthModel::actionResultKey (YouthActionResult result) |
| |
| std::pair< int, int > | YouthModel::simulateMatch (float home_strength, float away_strength, WorldRng &rng) |
| |
| std::int64_t | YouthModel::upgradeCost (AcademyUpgrade kind, int target, LeagueID league_id) |
| |
| int | YouthModel::upgradeDays (AcademyUpgrade kind, int target) |
| |
| std::uint8_t | YouthModel::upgradeTarget (AcademyUpgrade kind, int current) |
| |
◆ AcademyUpgrade
Academy investments the board can approve (values are persisted).
| Enumerator |
|---|
| None | |
| Facilities | |
| Recruitment | |
◆ IntakeQuality
Head of youth development's verdict on an intake.
| Enumerator |
|---|
| Weak | |
| Average | |
| Promising | |
| Golden | |
◆ UpgradeRequestResult
Board answer to an academy investment request.
| Enumerator |
|---|
| Approved | |
| NoClub | |
| InProgress | A project is already being built.
|
| TooSoon | The board answered a request recently.
|
| AtMaximum | Nothing left to improve.
|
| BeyondStature | Too ambitious for the club's reputation.
|
| CannotAfford | Cash (after a payroll reserve) does not cover it.
|
| NoConfidence | The board does not trust the manager enough.
|
◆ YouthActionResult
Outcome of an action on an academy player.
| Enumerator |
|---|
| Ok | |
| NoClub | |
| UnknownPlayer | |
| NotAllowed | Wrong status or club for this action.
|
| TooYoung | Below the first professional contract age.
|
| TooOld | Beyond the age limit of the squad.
|
| OverageFull | The U21 over-age places are taken.
|
◆ YouthContract
Contract of an academy player (values are persisted).
| Enumerator |
|---|
| None | Trialist: nothing signed yet.
|
| Scholarship | Scholarship with a fixed stipend.
|
| Professional | First professional contract.
|
◆ YouthStatus
Where an academy player stands (values are persisted).
| Enumerator |
|---|
| Candidate | Intake trialist waiting for a contract offer.
|
| Squad | Member of the U18 squad.
|
| Graduated | Promoted academy product (kept until 21).
|
| Reserve | Member of the U21 (reserve) squad.
|