|
Player12
An open source football management simulator
|
Weekly training microcycle, workload, individual focus and tactical familiarity. More...
#include <array>#include <cstddef>#include <cstdint>#include <optional>#include <string>#include <unordered_map>#include <utility>#include <vector>#include "global/types.h"Go to the source code of this file.
Classes | |
| struct | TrainingSlot |
| One day of the template. More... | |
| struct | TacticSnapshot |
| Strategy sliders and outfield shape the squad has drilled. More... | |
| struct | TrainingDay |
| What a club does on one calendar day. More... | |
| struct | TeamTrainingPlan |
| A club's schedule, familiarity and training load. More... | |
| struct | PlayerTrainingState |
| Individual focus and workload history of a player. More... | |
| struct | TrainingAdvice |
| One assistant recommendation as a language key plus arguments (formatted with formatLocalized()). More... | |
| struct | AdviceInputs |
| Squad facts the assistant bases the advice on. More... | |
| class | TrainingRegistry |
| Training plans of every club and training state of every player. More... | |
Namespaces | |
| namespace | TrainingModel |
| Pure training rules (no game state), unit tested in isolation. | |
| namespace | TrainingSystem |
| Training processing on the live world (called by WorldSimulation). | |
Typedefs | |
| using | Microcycle = std::array< TrainingSlot, MICROCYCLE_DAYS > |
| using | TrainingSystem::FixtureOutlook = std::unordered_map< TeamID, std::uint8_t > |
Enumerations | |
| enum class | MicrocycleDay : std::uint8_t { MdPlus1 = 0 , MdPlus2 , MdMinus4 , MdMinus3 , MdMinus2 , MdMinus1 , COUNT } |
| Training days between two matches of a one-match week. More... | |
| enum class | SessionType : std::uint8_t { Rest = 0 , Recovery , Fitness , Technical , Attacking , Defending , Tactical , MatchPrep , COUNT } |
| Session content (values are persisted). More... | |
| enum class | TrainingIntensity : std::uint8_t { Low = 0 , Normal , High , COUNT } |
| Session or squad-wide intensity (values are persisted). More... | |
| enum class | TrainingPreset : std::uint8_t { Balanced = 0 , Fitness , Attacking , Defending , YouthDevelopment , Light , Custom , COUNT } |
| Schedule templates (values are persisted). More... | |
| enum class | TrainingFocus : std::uint8_t { None = 0 , Physical , Attacking , Playmaking , Defending , Goalkeeping , RetrainStriker , RetrainMidfielder , RetrainDefender , COUNT } |
| Individual training focus of a player (values are persisted). More... | |
| enum class | WorkloadRisk : std::uint8_t { Low , Moderate , High } |
| Injury risk band from workload and freshness. More... | |
| enum class | AdviceSeverity : std::uint8_t { Info , Suggestion , Warning } |
| Severity of an assistant recommendation. More... | |
Variables | |
| constexpr std::size_t | MICROCYCLE_DAYS |
| constexpr std::size_t | SESSION_TYPE_COUNT |
| constexpr std::size_t | TRAINING_FOCUS_COUNT |
| constexpr float | TrainingModel::MATCH_LOAD = 1.8f |
Weekly training microcycle, workload, individual focus and tactical familiarity.
A club trains to a template of six days between two matches (MD+1 recovery, MD+2 off, MD-4 strength, MD-3 endurance, MD-2 speed/tactics, MD-1 activation; rules-regulations 5.1, world-realism 8). The template is mapped onto the real fixture list every day; weeks with two matches collapse to recovery and activation only when auto-adjust is on.
Effects (all bounded around the Balanced preset, which reproduces the calibrated world simulation):
| using Microcycle = std::array<TrainingSlot, MICROCYCLE_DAYS> |
|
strong |
|
strong |
|
strong |
Session content (values are persisted).
| Enumerator | |
|---|---|
| Rest | |
| Recovery | Pool, bike, mobility. |
| Fitness | Strength and conditioning. |
| Technical | Ball work: passing, dribbling, handling. |
| Attacking | Finishing and attacking movement. |
| Defending | Defensive shape, duels and tackling. |
| Tactical | Team shape and units (builds familiarity). |
| MatchPrep | Opponent preparation, set pieces, activation. |
| COUNT | |
|
strong |
Individual training focus of a player (values are persisted).
|
strong |
|
strong |
|
strong |
Injury risk band from workload and freshness.
| Enumerator | |
|---|---|
| Low | |
| Moderate | |
| High | |
|
inlineconstexpr |
|
inlineconstexpr |
|
inlineconstexpr |