Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchRules::FoulContext Struct Reference

#include <match_rules.h>

Public Attributes

float severityRoll = 0.0f
 
float cardRoll = 0.0f
 
float strictness = 1.0f
 
bool tactical = false
 
bool denyingGoalChance = false
 
bool inPenaltyArea = false
 
bool offenderAlreadyBooked = false
 
bool offenderIsAway = false
 
float venueBiasScale = 1.0f
 

Member Data Documentation

◆ cardRoll

float MatchRules::FoulContext::cardRoll = 0.0f

◆ denyingGoalChance

bool MatchRules::FoulContext::denyingGoalChance = false

Denied an obvious goal-scoring opportunity.

◆ inPenaltyArea

bool MatchRules::FoulContext::inPenaltyArea = false

The foul happened inside the offender's penalty area.

◆ offenderAlreadyBooked

bool MatchRules::FoulContext::offenderAlreadyBooked = false

◆ offenderIsAway

bool MatchRules::FoulContext::offenderIsAway = false

◆ severityRoll

float MatchRules::FoulContext::severityRoll = 0.0f

Uniform rolls in [0, 1).

◆ strictness

float MatchRules::FoulContext::strictness = 1.0f

Per-match referee strictness, ~N(1, 0.13).

◆ tactical

bool MatchRules::FoulContext::tactical = false

The foul stopped a promising attack (tactical foul).

◆ venueBiasScale

float MatchRules::FoulContext::venueBiasScale = 1.0f

Scales the referee's lean toward the home side (0 = neutral venue).


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