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

Tracked numbers of one player in a match (attacking frame). More...

#include <match_insights.h>

Public Attributes

PlayerID player = 0
 
bool home = true
 
std::uint16_t touches = 0
 
float avg_x = 0.5f
 
float avg_y = 0.5f
 
std::uint16_t progressive_passes = 0
 
std::uint16_t pressures = 0
 
float expected_assists = 0.0f
 
std::array< std::uint8_t, MatchTracking::CELLS > cells {}
 

Detailed Description

Tracked numbers of one player in a match (attacking frame).

Member Data Documentation

◆ avg_x

float DetailPlayer::avg_x = 0.5f

Mean touch position; meaningless without touches.

◆ avg_y

float DetailPlayer::avg_y = 0.5f

◆ cells

std::array<std::uint8_t, MatchTracking::CELLS> DetailPlayer::cells {}

Touches per grid cell (MatchTracking::cellOf), capped at 255.

◆ expected_assists

float DetailPlayer::expected_assists = 0.0f

◆ home

bool DetailPlayer::home = true

◆ player

PlayerID DetailPlayer::player = 0

◆ pressures

std::uint16_t DetailPlayer::pressures = 0

◆ progressive_passes

std::uint16_t DetailPlayer::progressive_passes = 0

◆ touches

std::uint16_t DetailPlayer::touches = 0

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