|
Player12
An open source football management simulator
|
#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 |
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.
| int PlayerMatchStats::aerialDuelsLost = 0 |
| int PlayerMatchStats::aerialDuelsWon = 0 |
| int PlayerMatchStats::assists = 0 |
| int PlayerMatchStats::clearances = 0 |
| float PlayerMatchStats::condition = 1.0f |
Physical condition in [0, 1] when the player last left or at the end.
| float PlayerMatchStats::distanceMetres = 0.0f |
Distance covered in metres (the simulation runs in real time).
| float PlayerMatchStats::expectedGoals = 0.0f |
| int PlayerMatchStats::foulsCommitted = 0 |
| int PlayerMatchStats::foulsSuffered = 0 |
| int PlayerMatchStats::goals = 0 |
| int PlayerMatchStats::goalsConceded = 0 |
| float PlayerMatchStats::highIntensityMetres = 0.0f |
Distance above 5.5 m/s (19.8 km/h) and above 7 m/s (25.2 km/h).
| bool PlayerMatchStats::injured = false |
| int PlayerMatchStats::interceptions = 0 |
| bool PlayerMatchStats::isHomeTeam = false |
| int PlayerMatchStats::keyPasses = 0 |
| float PlayerMatchStats::minutesPlayed = 0.0f |
| int PlayerMatchStats::ownGoals = 0 |
| int PlayerMatchStats::passesAttempted = 0 |
| int PlayerMatchStats::passesCompleted = 0 |
| PlayerID PlayerMatchStats::playerId = 0 |
| int PlayerMatchStats::pressures = 0 |
Times he started closing down the ball carrier.
| float PlayerMatchStats::rating = MatchTuning::Rating::BASELINE |
Event-driven rating, 6.0 baseline, bounded to [3, 10].
| int PlayerMatchStats::redCards = 0 |
| PlayerRole PlayerMatchStats::role = PlayerRole::UNKNOWN |
| int PlayerMatchStats::saves = 0 |
| float PlayerMatchStats::secondHalfDistanceMetres = 0.0f |
| float PlayerMatchStats::secondHalfHighIntensityMetres = 0.0f |
| bool PlayerMatchStats::sentOff = false |
| int PlayerMatchStats::shots = 0 |
| int PlayerMatchStats::shotsOnTarget = 0 |
| float PlayerMatchStats::sprintMetres = 0.0f |
| int PlayerMatchStats::sprints = 0 |
Efforts above 7 m/s.
| bool PlayerMatchStats::started = false |
| bool PlayerMatchStats::substitutedOff = false |
| bool PlayerMatchStats::substitutedOn = false |
| int PlayerMatchStats::tacklesAttempted = 0 |
| int PlayerMatchStats::tacklesWon = 0 |
| float PlayerMatchStats::topSpeed = 0.0f |
Highest speed reached (m/s).
| int PlayerMatchStats::touches = 0 |
Times he took control of the ball (receptions, wins, restarts).
| int PlayerMatchStats::yellowCards = 0 |