Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchTuning::Fatigue Struct Referencefinal

#include <match_tuning.h>

Static Public Attributes

static constexpr float IDLE_DRAIN = 0.000030f
 
static constexpr float RUNNING_DRAIN = 0.00080f
 
static constexpr float SPRINT_THRESHOLD = 0.78f
 
static constexpr float SPRINT_DRAIN = 0.00030f
 
static constexpr float PRESSING_DRAIN = 0.00015f
 
static constexpr float TEAM_PRESSING_NEUTRAL = 0.5f
 
static constexpr float TEAM_PRESSING_DRAIN = 0.00040f
 
static constexpr float ENDURANCE_BASE = 1.40f
 
static constexpr float ENDURANCE_RELIEF = 0.80f
 
static constexpr float HALF_TIME_RECOVERY = 0.06f
 
static constexpr float EXTRA_TIME_BREAK_RECOVERY = 0.03f
 
static constexpr float EXTRA_TIME_HALF_TIME_RECOVERY = 0.01f
 
static constexpr float TECHNIQUE_ERROR_GAIN = 0.35f
 
static constexpr float RESERVE_DRAIN_PER_SECOND = 0.04f
 
static constexpr float RESERVE_RECOVERY_SECONDS = 90.0f
 

Detailed Description

Two-pool energy model per real second. The slow pool (stamina, the match condition) drains with running intensity and caps top speed late in the game; the fast pool (repeat-sprint reserve) empties during high-intensity bursts and refills within a couple of minutes.

Member Data Documentation

◆ ENDURANCE_BASE

constexpr float MatchTuning::Fatigue::ENDURANCE_BASE = 1.40f
staticconstexpr

◆ ENDURANCE_RELIEF

constexpr float MatchTuning::Fatigue::ENDURANCE_RELIEF = 0.80f
staticconstexpr

◆ EXTRA_TIME_BREAK_RECOVERY

constexpr float MatchTuning::Fatigue::EXTRA_TIME_BREAK_RECOVERY = 0.03f
staticconstexpr

◆ EXTRA_TIME_HALF_TIME_RECOVERY

constexpr float MatchTuning::Fatigue::EXTRA_TIME_HALF_TIME_RECOVERY = 0.01f
staticconstexpr

◆ HALF_TIME_RECOVERY

constexpr float MatchTuning::Fatigue::HALF_TIME_RECOVERY = 0.06f
staticconstexpr

◆ IDLE_DRAIN

constexpr float MatchTuning::Fatigue::IDLE_DRAIN = 0.000030f
staticconstexpr

◆ PRESSING_DRAIN

constexpr float MatchTuning::Fatigue::PRESSING_DRAIN = 0.00015f
staticconstexpr

◆ RESERVE_DRAIN_PER_SECOND

constexpr float MatchTuning::Fatigue::RESERVE_DRAIN_PER_SECOND = 0.04f
staticconstexpr

Reserve drained per second at full sprint (empties in ~25 s).

◆ RESERVE_RECOVERY_SECONDS

constexpr float MatchTuning::Fatigue::RESERVE_RECOVERY_SECONDS = 90.0f
staticconstexpr

◆ RUNNING_DRAIN

constexpr float MatchTuning::Fatigue::RUNNING_DRAIN = 0.00080f
staticconstexpr

◆ SPRINT_DRAIN

constexpr float MatchTuning::Fatigue::SPRINT_DRAIN = 0.00030f
staticconstexpr

◆ SPRINT_THRESHOLD

constexpr float MatchTuning::Fatigue::SPRINT_THRESHOLD = 0.78f
staticconstexpr

◆ TEAM_PRESSING_DRAIN

constexpr float MatchTuning::Fatigue::TEAM_PRESSING_DRAIN = 0.00040f
staticconstexpr

◆ TEAM_PRESSING_NEUTRAL

constexpr float MatchTuning::Fatigue::TEAM_PRESSING_NEUTRAL = 0.5f
staticconstexpr

Extra drain per second for the whole side out of possession, per unit of pressing above the neutral setting.

◆ TECHNIQUE_ERROR_GAIN

constexpr float MatchTuning::Fatigue::TECHNIQUE_ERROR_GAIN = 0.35f
staticconstexpr

The documentation for this struct was generated from the following file: