Player12
An open source football management simulator
Loading...
Searching...
No Matches
OppositionRules Namespace Reference

Variables

constexpr std::size_t RECENT_MATCHES = 5
 
constexpr int MIN_MATCHES = 3
 
constexpr std::size_t KEY_PLAYERS = 3
 
constexpr std::size_t MAX_COUNTERS = 3
 
constexpr float HIGH_RATIO = 1.15f
 
constexpr float LOW_RATIO = 0.85f
 
constexpr float HIGH_POSSESSION = 55.0f
 
constexpr float LOW_POSSESSION = 45.0f
 
constexpr float PASSING_MARGIN = 4.0f
 
constexpr float MAIN_THREAT_SHARE = 0.4f
 
constexpr int MAIN_THREAT_MIN_GOALS = 5
 

Variable Documentation

◆ HIGH_POSSESSION

constexpr float OppositionRules::HIGH_POSSESSION = 55.0f
inlineconstexpr

◆ HIGH_RATIO

constexpr float OppositionRules::HIGH_RATIO = 1.15f
inlineconstexpr

Ratio to the league average that counts as a strength / weakness.

◆ KEY_PLAYERS

constexpr std::size_t OppositionRules::KEY_PLAYERS = 3
inlineconstexpr

◆ LOW_POSSESSION

constexpr float OppositionRules::LOW_POSSESSION = 45.0f
inlineconstexpr

◆ LOW_RATIO

constexpr float OppositionRules::LOW_RATIO = 0.85f
inlineconstexpr

◆ MAIN_THREAT_MIN_GOALS

constexpr int OppositionRules::MAIN_THREAT_MIN_GOALS = 5
inlineconstexpr

Team goals needed before one scorer's share means anything.

◆ MAIN_THREAT_SHARE

constexpr float OppositionRules::MAIN_THREAT_SHARE = 0.4f
inlineconstexpr

Share of the side's goals that makes a scorer the main threat.

◆ MAX_COUNTERS

constexpr std::size_t OppositionRules::MAX_COUNTERS = 3
inlineconstexpr

◆ MIN_MATCHES

constexpr int OppositionRules::MIN_MATCHES = 3
inlineconstexpr

◆ PASSING_MARGIN

constexpr float OppositionRules::PASSING_MARGIN = 4.0f
inlineconstexpr

Pass completion (points) away from the league average.

◆ RECENT_MATCHES

constexpr std::size_t OppositionRules::RECENT_MATCHES = 5
inlineconstexpr