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

#include <match_tuning.h>

Static Public Attributes

static constexpr float FIXED_STEP_SECONDS = 0.1f
 
static constexpr std::uint64_t TACTICAL_REFRESH_STEPS = 2
 
static constexpr int BALL_SUBSTEPS = 4
 
static constexpr std::uint32_t BACKGROUND_STOPPAGE_TICKS = 3
 
static constexpr float SECONDS_PER_MINUTE = 60.0f
 
static constexpr int MIN_PLAY_HALF_MINUTES = 3
 
static constexpr int MAX_PLAY_HALF_MINUTES = 15
 
static constexpr int DEFAULT_PLAY_HALF_MINUTES = 5
 
static constexpr float PLAY_STOPPAGE_SECONDS = 3.0F
 
static constexpr float RESTART_SUPPORT_DISTANCE_METRES = 30.0F
 
static constexpr float RESTART_SUPPORT_BLEND = 0.35F
 
static constexpr float THROW_OPPONENT_DISTANCE_METRES = 2.0F
 
static constexpr float KICK_OPPONENT_DISTANCE_METRES = 9.15F
 
static constexpr float MAX_FRAME_DELTA_SECONDS = 4.0f
 
static constexpr int MAX_FIXED_STEPS_PER_UPDATE = 30
 
static constexpr float HALF_TIME_MINUTE = 45.0f
 
static constexpr float FULL_TIME_MINUTE = 90.0f
 
static constexpr float EXTRA_TIME_HALF_MINUTES = 15.0f
 
static constexpr float EXTRA_TIME_BREAK_SECONDS = 10.0f
 
static constexpr float EXTRA_TIME_HALF_TIME_SECONDS = 5.0f
 
static constexpr float SHOOTOUT_START_SECONDS = 20.0f
 
static constexpr float SHOOTOUT_KICK_INTERVAL_SECONDS = 12.0f
 
static constexpr float SHOOTOUT_MAX_FLIGHT_SECONDS = 3.0f
 
static constexpr int SHOOTOUT_KICKS = 5
 
static constexpr float HALF_TIME_PAUSE_SECONDS = 10.0f
 
static constexpr float KICKOFF_DELAY_SECONDS = 4.0f
 
static constexpr float THROW_IN_DELAY_SECONDS = 21.0f
 
static constexpr float GOAL_KICK_DELAY_SECONDS = 33.0f
 
static constexpr float CORNER_DELAY_SECONDS = 40.0f
 
static constexpr float FREE_KICK_DELAY_SECONDS = 22.0f
 
static constexpr float SET_PIECE_FREE_KICK_DELAY_SECONDS = 28.0f
 
static constexpr float PENALTY_DELAY_SECONDS = 55.0f
 
static constexpr float CARD_DELAY_SECONDS = 15.0f
 
static constexpr float INJURY_DELAY_SECONDS = 50.0f
 
static constexpr float SUBSTITUTION_DELAY_SECONDS = 9.0f
 
static constexpr float GOAL_CELEBRATION_SECONDS = 55.0f
 
static constexpr float POSSESSION_TRANSITION_SECONDS = 5.0f
 
static constexpr float RATING_REFRESH_SECONDS = 6.0f
 
static constexpr std::size_t MAX_EVENTS = 1024
 

Member Data Documentation

◆ BACKGROUND_STOPPAGE_TICKS

constexpr std::uint32_t MatchTuning::Timing::BACKGROUND_STOPPAGE_TICKS = 3
staticconstexpr

MatchFidelity::BACKGROUND merges up to this many fixed steps into one while the ball is dead before a throw-in, goal kick, corner, free kick or penalty (players only walk to their restart spots). Live play keeps the 10 Hz step: a coarser one measurably changes shots and goals.

◆ BALL_SUBSTEPS

constexpr int MatchTuning::Timing::BALL_SUBSTEPS = 4
staticconstexpr

The free ball is integrated in this many sub-steps per fixed step.

◆ CARD_DELAY_SECONDS

constexpr float MatchTuning::Timing::CARD_DELAY_SECONDS = 15.0f
staticconstexpr

◆ CORNER_DELAY_SECONDS

constexpr float MatchTuning::Timing::CORNER_DELAY_SECONDS = 40.0f
staticconstexpr

◆ DEFAULT_PLAY_HALF_MINUTES

constexpr int MatchTuning::Timing::DEFAULT_PLAY_HALF_MINUTES = 5
staticconstexpr

◆ EXTRA_TIME_BREAK_SECONDS

constexpr float MatchTuning::Timing::EXTRA_TIME_BREAK_SECONDS = 10.0f
staticconstexpr

Breaks before extra time and at its half-time (clock stopped).

◆ EXTRA_TIME_HALF_MINUTES

constexpr float MatchTuning::Timing::EXTRA_TIME_HALF_MINUTES = 15.0f
staticconstexpr

Knockout ties still level play two halves of extra time.

◆ EXTRA_TIME_HALF_TIME_SECONDS

constexpr float MatchTuning::Timing::EXTRA_TIME_HALF_TIME_SECONDS = 5.0f
staticconstexpr

◆ FIXED_STEP_SECONDS

constexpr float MatchTuning::Timing::FIXED_STEP_SECONDS = 0.1f
staticconstexpr

Decision and body-physics step (10 Hz).

◆ FREE_KICK_DELAY_SECONDS

constexpr float MatchTuning::Timing::FREE_KICK_DELAY_SECONDS = 22.0f
staticconstexpr

◆ FULL_TIME_MINUTE

constexpr float MatchTuning::Timing::FULL_TIME_MINUTE = 90.0f
staticconstexpr

◆ GOAL_CELEBRATION_SECONDS

constexpr float MatchTuning::Timing::GOAL_CELEBRATION_SECONDS = 55.0f
staticconstexpr

Goal to kick-off: celebration and walk back (clock running).

◆ GOAL_KICK_DELAY_SECONDS

constexpr float MatchTuning::Timing::GOAL_KICK_DELAY_SECONDS = 33.0f
staticconstexpr

◆ HALF_TIME_MINUTE

constexpr float MatchTuning::Timing::HALF_TIME_MINUTE = 45.0f
staticconstexpr

◆ HALF_TIME_PAUSE_SECONDS

constexpr float MatchTuning::Timing::HALF_TIME_PAUSE_SECONDS = 10.0f
staticconstexpr

Interval in the tunnel; the clock is stopped and nothing is live.

◆ INJURY_DELAY_SECONDS

constexpr float MatchTuning::Timing::INJURY_DELAY_SECONDS = 50.0f
staticconstexpr

◆ KICK_OPPONENT_DISTANCE_METRES

constexpr float MatchTuning::Timing::KICK_OPPONENT_DISTANCE_METRES = 9.15F
staticconstexpr

◆ KICKOFF_DELAY_SECONDS

constexpr float MatchTuning::Timing::KICKOFF_DELAY_SECONDS = 4.0f
staticconstexpr

◆ MAX_EVENTS

constexpr std::size_t MatchTuning::Timing::MAX_EVENTS = 1024
staticconstexpr

◆ MAX_FIXED_STEPS_PER_UPDATE

constexpr int MatchTuning::Timing::MAX_FIXED_STEPS_PER_UPDATE = 30
staticconstexpr

◆ MAX_FRAME_DELTA_SECONDS

constexpr float MatchTuning::Timing::MAX_FRAME_DELTA_SECONDS = 4.0f
staticconstexpr

◆ MAX_PLAY_HALF_MINUTES

constexpr int MatchTuning::Timing::MAX_PLAY_HALF_MINUTES = 15
staticconstexpr

◆ MIN_PLAY_HALF_MINUTES

constexpr int MatchTuning::Timing::MIN_PLAY_HALF_MINUTES = 3
staticconstexpr

◆ PENALTY_DELAY_SECONDS

constexpr float MatchTuning::Timing::PENALTY_DELAY_SECONDS = 55.0f
staticconstexpr

◆ PLAY_STOPPAGE_SECONDS

constexpr float MatchTuning::Timing::PLAY_STOPPAGE_SECONDS = 3.0F
staticconstexpr

◆ POSSESSION_TRANSITION_SECONDS

constexpr float MatchTuning::Timing::POSSESSION_TRANSITION_SECONDS = 5.0f
staticconstexpr

◆ RATING_REFRESH_SECONDS

constexpr float MatchTuning::Timing::RATING_REFRESH_SECONDS = 6.0f
staticconstexpr

◆ RESTART_SUPPORT_BLEND

constexpr float MatchTuning::Timing::RESTART_SUPPORT_BLEND = 0.35F
staticconstexpr

◆ RESTART_SUPPORT_DISTANCE_METRES

constexpr float MatchTuning::Timing::RESTART_SUPPORT_DISTANCE_METRES = 30.0F
staticconstexpr

◆ SECONDS_PER_MINUTE

constexpr float MatchTuning::Timing::SECONDS_PER_MINUTE = 60.0f
staticconstexpr

◆ SET_PIECE_FREE_KICK_DELAY_SECONDS

constexpr float MatchTuning::Timing::SET_PIECE_FREE_KICK_DELAY_SECONDS = 28.0f
staticconstexpr

◆ SHOOTOUT_KICK_INTERVAL_SECONDS

constexpr float MatchTuning::Timing::SHOOTOUT_KICK_INTERVAL_SECONDS = 12.0f
staticconstexpr

◆ SHOOTOUT_KICKS

constexpr int MatchTuning::Timing::SHOOTOUT_KICKS = 5
staticconstexpr

Kicks per side before sudden death.

◆ SHOOTOUT_MAX_FLIGHT_SECONDS

constexpr float MatchTuning::Timing::SHOOTOUT_MAX_FLIGHT_SECONDS = 3.0f
staticconstexpr

◆ SHOOTOUT_START_SECONDS

constexpr float MatchTuning::Timing::SHOOTOUT_START_SECONDS = 20.0f
staticconstexpr

Penalty shootout pacing: before the first kick, between kicks, and the longest a kick can travel before it counts as missed.

◆ SUBSTITUTION_DELAY_SECONDS

constexpr float MatchTuning::Timing::SUBSTITUTION_DELAY_SECONDS = 9.0f
staticconstexpr

◆ TACTICAL_REFRESH_STEPS

constexpr std::uint64_t MatchTuning::Timing::TACTICAL_REFRESH_STEPS = 2
staticconstexpr

Team shape and off-ball targets refresh every this many steps (5 Hz), and at once whenever possession or the ball's flight changes; bodies move every step. Running load is accounted at the same rate.

◆ THROW_IN_DELAY_SECONDS

constexpr float MatchTuning::Timing::THROW_IN_DELAY_SECONDS = 21.0f
staticconstexpr

◆ THROW_OPPONENT_DISTANCE_METRES

constexpr float MatchTuning::Timing::THROW_OPPONENT_DISTANCE_METRES = 2.0F
staticconstexpr

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