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

Namespaces

namespace  MatchRules
 

Functions

std::string_view matchEventTypeName (MatchEventType type)
 
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)
 

Function Documentation

◆ matchEventTypeName()

std::string_view matchEventTypeName ( MatchEventType  type)