Player12
An open source football management simulator
Loading...
Searching...
No Matches
SideSummary Struct Reference

One side's numbers in the analysed part of the match. More...

#include <match_analysis.h>

Public Member Functions

float passCompletion () const
 
float passesAllowedPerAction (int opponent_passes) const
 

Public Attributes

int goals = 0
 
int shots = 0
 
int shots_on_target = 0
 
float xg = 0.0f
 
std::array< float, 3 > flank_xg {}
 
std::array< int, 3 > flank_shots {}
 
int box_shots = 0
 
int set_piece_shots = 0
 
int headed_shots = 0
 
float possession = 50.0f
 
int passes_attempted = 0
 
int passes_completed = 0
 
int tackles_attempted = 0
 
int tackles_won = 0
 
int interceptions = 0
 
int aerials_won = 0
 
int aerials_lost = 0
 

Detailed Description

One side's numbers in the analysed part of the match.

Member Function Documentation

◆ passCompletion()

float SideSummary::passCompletion ( ) const

◆ passesAllowedPerAction()

float SideSummary::passesAllowedPerAction ( int  opponent_passes) const

Opponent passes per defensive action (tackle attempt or interception) of this side; lower means a more intense press.

Member Data Documentation

◆ aerials_lost

int SideSummary::aerials_lost = 0

◆ aerials_won

int SideSummary::aerials_won = 0

◆ box_shots

int SideSummary::box_shots = 0

◆ flank_shots

std::array<int, 3> SideSummary::flank_shots {}

◆ flank_xg

std::array<float, 3> SideSummary::flank_xg {}

xG and shots per flank of the side's own attack.

◆ goals

int SideSummary::goals = 0

◆ headed_shots

int SideSummary::headed_shots = 0

◆ interceptions

int SideSummary::interceptions = 0

◆ passes_attempted

int SideSummary::passes_attempted = 0

◆ passes_completed

int SideSummary::passes_completed = 0

◆ possession

float SideSummary::possession = 50.0f

◆ set_piece_shots

int SideSummary::set_piece_shots = 0

◆ shots

int SideSummary::shots = 0

◆ shots_on_target

int SideSummary::shots_on_target = 0

◆ tackles_attempted

int SideSummary::tackles_attempted = 0

◆ tackles_won

int SideSummary::tackles_won = 0

◆ xg

float SideSummary::xg = 0.0f

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