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

#include <match_events.h>

Public Attributes

PlayerID playerId = 0
 
bool isHomeTeam = false
 
PlayerRole role = PlayerRole::UNKNOWN
 
bool started = false
 
bool substitutedOn = false
 
bool substitutedOff = false
 
bool sentOff = false
 
bool injured = false
 
float minutesPlayed = 0.0f
 
int goals = 0
 
int ownGoals = 0
 
int assists = 0
 
int shots = 0
 
int shotsOnTarget = 0
 
float expectedGoals = 0.0f
 
int passesAttempted = 0
 
int passesCompleted = 0
 
int keyPasses = 0
 
int tacklesAttempted = 0
 
int tacklesWon = 0
 
int interceptions = 0
 
int clearances = 0
 
int aerialDuelsWon = 0
 
int aerialDuelsLost = 0
 
int saves = 0
 
int goalsConceded = 0
 
int foulsCommitted = 0
 
int foulsSuffered = 0
 
int yellowCards = 0
 
int redCards = 0
 
int touches = 0
 
int pressures = 0
 
float distanceMetres = 0.0f
 
float secondHalfDistanceMetres = 0.0f
 
float highIntensityMetres = 0.0f
 
float secondHalfHighIntensityMetres = 0.0f
 
float sprintMetres = 0.0f
 
int sprints = 0
 
float topSpeed = 0.0f
 
float condition = 1.0f
 
float rating = MatchTuning::Rating::BASELINE
 

Detailed Description

Per-player match statistics. One entry exists for every player who took part, including substitutes and players who left the pitch; the list is never truncated, so it is the authoritative source for post-match data.

Member Data Documentation

◆ aerialDuelsLost

int PlayerMatchStats::aerialDuelsLost = 0

◆ aerialDuelsWon

int PlayerMatchStats::aerialDuelsWon = 0

◆ assists

int PlayerMatchStats::assists = 0

◆ clearances

int PlayerMatchStats::clearances = 0

◆ condition

float PlayerMatchStats::condition = 1.0f

Physical condition in [0, 1] when the player last left or at the end.

◆ distanceMetres

float PlayerMatchStats::distanceMetres = 0.0f

Distance covered in metres (the simulation runs in real time).

◆ expectedGoals

float PlayerMatchStats::expectedGoals = 0.0f

◆ foulsCommitted

int PlayerMatchStats::foulsCommitted = 0

◆ foulsSuffered

int PlayerMatchStats::foulsSuffered = 0

◆ goals

int PlayerMatchStats::goals = 0

◆ goalsConceded

int PlayerMatchStats::goalsConceded = 0

◆ highIntensityMetres

float PlayerMatchStats::highIntensityMetres = 0.0f

Distance above 5.5 m/s (19.8 km/h) and above 7 m/s (25.2 km/h).

◆ injured

bool PlayerMatchStats::injured = false

◆ interceptions

int PlayerMatchStats::interceptions = 0

◆ isHomeTeam

bool PlayerMatchStats::isHomeTeam = false

◆ keyPasses

int PlayerMatchStats::keyPasses = 0

◆ minutesPlayed

float PlayerMatchStats::minutesPlayed = 0.0f

◆ ownGoals

int PlayerMatchStats::ownGoals = 0

◆ passesAttempted

int PlayerMatchStats::passesAttempted = 0

◆ passesCompleted

int PlayerMatchStats::passesCompleted = 0

◆ playerId

PlayerID PlayerMatchStats::playerId = 0

◆ pressures

int PlayerMatchStats::pressures = 0

Times he started closing down the ball carrier.

◆ rating

float PlayerMatchStats::rating = MatchTuning::Rating::BASELINE

Event-driven rating, 6.0 baseline, bounded to [3, 10].

◆ redCards

int PlayerMatchStats::redCards = 0

◆ role

PlayerRole PlayerMatchStats::role = PlayerRole::UNKNOWN

◆ saves

int PlayerMatchStats::saves = 0

◆ secondHalfDistanceMetres

float PlayerMatchStats::secondHalfDistanceMetres = 0.0f

◆ secondHalfHighIntensityMetres

float PlayerMatchStats::secondHalfHighIntensityMetres = 0.0f

◆ sentOff

bool PlayerMatchStats::sentOff = false

◆ shots

int PlayerMatchStats::shots = 0

◆ shotsOnTarget

int PlayerMatchStats::shotsOnTarget = 0

◆ sprintMetres

float PlayerMatchStats::sprintMetres = 0.0f

◆ sprints

int PlayerMatchStats::sprints = 0

Efforts above 7 m/s.

◆ started

bool PlayerMatchStats::started = false

◆ substitutedOff

bool PlayerMatchStats::substitutedOff = false

◆ substitutedOn

bool PlayerMatchStats::substitutedOn = false

◆ tacklesAttempted

int PlayerMatchStats::tacklesAttempted = 0

◆ tacklesWon

int PlayerMatchStats::tacklesWon = 0

◆ topSpeed

float PlayerMatchStats::topSpeed = 0.0f

Highest speed reached (m/s).

◆ touches

int PlayerMatchStats::touches = 0

Times he took control of the ball (receptions, wins, restarts).

◆ yellowCards

int PlayerMatchStats::yellowCards = 0

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