|
Player12
An open source football management simulator
|
#include <algorithm>#include <array>#include <cstddef>#include <cstdint>#include <mutex>#include <span>#include <string>#include <unordered_map>#include <utility>#include <vector>#include "global/languages.h"#include "global/types.h"Go to the source code of this file.
Classes | |
| struct | StaffMember |
| A coach, medic, scout or academy manager. More... | |
| struct | StaffEffects |
| What a club's staff does for the squad (all bounded). More... | |
| class | StaffRoster |
| Every staff member of the world with per-club effect caches. Concurrent effects queries return independent snapshots. Roster mutations and access through borrowed member pointers require exclusive career access. More... | |
Namespaces | |
| namespace | StaffModel |
| Staff ratings, effects, generation, wages and contracts. | |
Typedefs | |
| using | StaffID = std::uint32_t |
| Type alias for staff identifiers. | |
Enumerations | |
| enum class | StaffRole : std::uint8_t { AssistantManager = 0 , AttackingCoach , DefendingCoach , FitnessCoach , GoalkeepingCoach , YouthCoach , Physio , SportsScientist , Scout , HeadOfYouth , COUNT } |
| Staff roles (values are persisted). More... | |
| enum class | StaffAttribute : std::uint8_t { Attacking = 0 , Defending , Fitness , Goalkeeping , Tactical , YouthDevelopment , Physiotherapy , SportsScience , JudgingAbility , JudgingPotential , COUNT } |
| Staff attributes on a 1-100 scale (order is persisted). More... | |
Functions | |
| std::uint8_t | StaffModel::rating (const StaffMember &member) |
| std::array< StaffAttribute, 2 > | StaffModel::keyAttributes (StaffRole role) |
| StaffEffects | StaffModel::computeEffects (std::span< const StaffMember *const > staff) |
| std::uint32_t | StaffModel::marketWage (const StaffMember &member) |
| std::uint32_t | StaffModel::renewalWage (const StaffMember &member) |
| std::int64_t | StaffModel::severance (const StaffMember &member) |
| std::array< std::uint8_t, STAFF_ROLE_COUNT > | StaffModel::roleCounts (std::uint8_t reputation) |
| std::vector< StaffMember > | StaffModel::generateClubStaff (const Team &team, const LeagueEconomy &economy, std::uint64_t world_seed, StaffRoster &roster) |
| void | StaffModel::generateWorld (GameData &gamedata) |
| void | StaffModel::refreshMarket (GameData &gamedata, std::int32_t ordinal) |
| std::vector< std::string > | StaffModel::seasonEnd (GameData &gamedata, TeamID managed_team_id, std::uint16_t year) |
| float | StaffModel::potentialErrorSd (float scouting_accuracy) |
| const char * | StaffModel::roleKey (StaffRole role) |
| const char * | StaffModel::roleDescriptionKey (StaffRole role) |
| const char * | StaffModel::attributeKey (StaffAttribute attribute) |
Variables | |
| constexpr std::size_t | STAFF_ROLE_COUNT |
| constexpr std::size_t | STAFF_ATTRIBUTE_COUNT |
| constexpr std::array< std::uint8_t, STAFF_ROLE_COUNT > | StaffModel::ROLE_LIMITS |
| constexpr std::size_t | StaffModel::MARKET_SIZE = 70 |
| constexpr double | StaffModel::FOOTBALL_STAFF_SHARE = 0.35 |
| using StaffID = std::uint32_t |
Type alias for staff identifiers.
|
strong |
Staff attributes on a 1-100 scale (order is persisted).
| Enumerator | |
|---|---|
| Attacking | Coaching attacking play. |
| Defending | Coaching defending. |
| Fitness | Strength and conditioning. |
| Goalkeeping | Coaching goalkeepers. |
| Tactical | Tactical knowledge and match preparation. |
| YouthDevelopment | Working with young players. |
| Physiotherapy | Injury treatment and rehabilitation. |
| SportsScience | Load management and injury prevention. |
| JudgingAbility | Assessing current ability. |
| JudgingPotential | Assessing potential. |
| COUNT | |
|
strong |
|
inlineconstexpr |
|
inlineconstexpr |