Player12
An open source football management simulator
Loading...
Searching...
No Matches
match_rules.h File Reference
#include <algorithm>
#include <cstdint>
#include "model/match_events.h"

Go to the source code of this file.

Classes

struct  MatchRules::StoppageLog
 
struct  MatchRules::Knockout
 
struct  MatchRules::FoulContext
 
struct  MatchRules::TackleContext
 

Namespaces

namespace  MatchRules
 

Enumerations

enum class  MatchRules::FoulSanction : std::uint8_t { MatchRules::NONE , MatchRules::YELLOW , MatchRules::SECOND_YELLOW , MatchRules::RED }
 

Functions

int MatchRules::computeAddedMinutes (const StoppageLog &log, int period)
 
float MatchRules::periodStartMinute (int period)
 
float MatchRules::periodEndMinute (int period)
 
bool MatchRules::shootoutDecided (int homeGoals, int homeKicks, int awayGoals, int awayKicks)
 
float MatchRules::computeMatchRating (const PlayerMatchStats &stats, bool goalkeeper, bool defender, int teamGoalDifference)
 
float MatchRules::playerHeightMetres (std::uint8_t heightCentimetres)
 
float MatchRules::headerReachMetres (float heightMetres, float physicality)
 
float MatchRules::goalkeeperReachMetres (float heightMetres, float goalkeeping)
 
float MatchRules::goalkeeperHandlingRadiusMetres (float heightMetres, float goalkeeping, float ballHeightMetres, bool diving)
 
float MatchRules::aerialDuelStrength (float heightMetres, float physicality, float ballHeightMetres)
 
FoulSanction MatchRules::decideFoulSanction (const FoulContext &context)
 
float MatchRules::tackleWinChance (const TackleContext &context)
 
float MatchRules::tackleFoulPropensity (const TackleContext &context)
 
float MatchRules::staminaDrainPerSecond (float speedRatio, float endurance, float pressingIntensity)