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

#include <match_tuning.h>

Static Public Attributes

static constexpr float MIN_SPEED = 1.0f
 
static constexpr float MAX_SPEED = 30.0f
 
static constexpr float DEFAULT_SPEED = 1.0f
 
static constexpr float DEFAULT_HIGHLIGHT_SPEED = 1.0f
 
static constexpr float HIGHLIGHT_LEAD_SECONDS = 15.0f
 
static constexpr double RESTART_LEAD_SECONDS = 1.2
 
static constexpr float HIGHLIGHT_TAIL_SECONDS = 6.0f
 
static constexpr float PREDICTION_HORIZON_SECONDS = 900.0f
 
static constexpr float MERGE_GAP_SECONDS = 4.0f
 

Detailed Description

Playback helpers for the live view. The simulation itself never depends on them: the viewer chooses how many simulated seconds pass per wall second (1 = real time), and highlight playback skips (simulates headless) between predicted highlight windows.

Member Data Documentation

◆ DEFAULT_HIGHLIGHT_SPEED

constexpr float MatchTuning::Playback::DEFAULT_HIGHLIGHT_SPEED = 1.0f
staticconstexpr

◆ DEFAULT_SPEED

constexpr float MatchTuning::Playback::DEFAULT_SPEED = 1.0f
staticconstexpr

◆ HIGHLIGHT_LEAD_SECONDS

constexpr float MatchTuning::Playback::HIGHLIGHT_LEAD_SECONDS = 15.0f
staticconstexpr

Build-up shown before a highlight trigger (shot, card, penalty...).

◆ HIGHLIGHT_TAIL_SECONDS

constexpr float MatchTuning::Playback::HIGHLIGHT_TAIL_SECONDS = 6.0f
staticconstexpr

Aftermath shown once the trigger happened.

◆ MAX_SPEED

constexpr float MatchTuning::Playback::MAX_SPEED = 30.0f
staticconstexpr

◆ MERGE_GAP_SECONDS

constexpr float MatchTuning::Playback::MERGE_GAP_SECONDS = 4.0f
staticconstexpr

Highlight windows closer than this are merged into one.

◆ MIN_SPEED

constexpr float MatchTuning::Playback::MIN_SPEED = 1.0f
staticconstexpr

◆ PREDICTION_HORIZON_SECONDS

constexpr float MatchTuning::Playback::PREDICTION_HORIZON_SECONDS = 900.0f
staticconstexpr

How far ahead a highlight prediction simulates before giving up.

◆ RESTART_LEAD_SECONDS

constexpr double MatchTuning::Playback::RESTART_LEAD_SECONDS = 1.2
staticconstexpr

A build-up that starts with a restart opens this long before the ball is played (the setup before it is dead time).


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