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

One shot in the shooter's attacking frame: the shooter attacks towards x = 1 and y = 0 is his left touchline. More...

#include <match_analysis.h>

Public Attributes

float minute = 0.0f
 
std::uint8_t period = 1
 
bool home = true
 
PlayerID player = 0
 
float x = 0.5f
 
float y = 0.5f
 
float xg = 0.0f
 
ShotOutcome outcome = ShotOutcome::OffTarget
 
bool header = false
 
bool set_piece = false
 
bool penalty = false
 

Detailed Description

One shot in the shooter's attacking frame: the shooter attacks towards x = 1 and y = 0 is his left touchline.

Member Data Documentation

◆ header

bool ShotRecord::header = false

◆ home

bool ShotRecord::home = true

Shooter's side.

◆ minute

float ShotRecord::minute = 0.0f

◆ outcome

ShotOutcome ShotRecord::outcome = ShotOutcome::OffTarget

◆ penalty

bool ShotRecord::penalty = false

◆ period

std::uint8_t ShotRecord::period = 1

◆ player

PlayerID ShotRecord::player = 0

◆ set_piece

bool ShotRecord::set_piece = false

From a set piece (including penalties); only known for tracked matches (captureSnapshot), false otherwise.

◆ x

float ShotRecord::x = 0.5f

◆ xg

float ShotRecord::xg = 0.0f

◆ y

float ShotRecord::y = 0.5f

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