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

Facts of a live match for the assistant's analysis. More...

#include <match_analysis.h>

Public Attributes

std::span< const MatchEvent > events
 
const MatchStats * stats = nullptr
 
std::span< const PlayerMatchStats > players
 
std::span< const std::pair< PlayerID, float > > conditions
 
bool managed_home = true
 
float minute = 45.0f
 
bool full_time = false
 
int substitutions_left = 0
 
std::function< std::string(PlayerID)> name_of
 

Detailed Description

Facts of a live match for the assistant's analysis.

Member Data Documentation

◆ conditions

std::span<const std::pair<PlayerID, float> > AnalysisInput::conditions

Live condition (0-1) of the managed players on the pitch.

◆ events

std::span<const MatchEvent> AnalysisInput::events

◆ full_time

bool AnalysisInput::full_time = false

◆ managed_home

bool AnalysisInput::managed_home = true

◆ minute

float AnalysisInput::minute = 45.0f

Clock minutes played.

◆ name_of

std::function<std::string(PlayerID)> AnalysisInput::name_of

Display name of a player (used in the lines' arguments).

◆ players

std::span<const PlayerMatchStats> AnalysisInput::players

◆ stats

const MatchStats* AnalysisInput::stats = nullptr

◆ substitutions_left

int AnalysisInput::substitutions_left = 0

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