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

Competitive (league or cup) totals of a player for one team in one season. Friendlies are not counted. More...

#include <season_history.h>

Public Member Functions

float averageRating () const
 

Public Attributes

uint16_t season = 0
 
PlayerID player_id = 0
 
TeamID team_id = 0
 
MatchType competition_type = MatchType::LEAGUE
 
uint16_t appearances = 0
 
uint16_t starts = 0
 
uint16_t minutes = 0
 
uint16_t goals = 0
 
uint16_t assists = 0
 
uint16_t yellow_cards = 0
 
uint16_t red_cards = 0
 
float rating_total = 0.0f
 
uint16_t rated_matches = 0
 

Detailed Description

Competitive (league or cup) totals of a player for one team in one season. Friendlies are not counted.

Member Function Documentation

◆ averageRating()

float PlayerSeasonStats::averageRating ( ) const
inline

Average match rating; 0 when no rated match was played.

Member Data Documentation

◆ appearances

uint16_t PlayerSeasonStats::appearances = 0

◆ assists

uint16_t PlayerSeasonStats::assists = 0

◆ competition_type

MatchType PlayerSeasonStats::competition_type = MatchType::LEAGUE

◆ goals

uint16_t PlayerSeasonStats::goals = 0

◆ minutes

uint16_t PlayerSeasonStats::minutes = 0

◆ player_id

PlayerID PlayerSeasonStats::player_id = 0

◆ rated_matches

uint16_t PlayerSeasonStats::rated_matches = 0

◆ rating_total

float PlayerSeasonStats::rating_total = 0.0f

◆ red_cards

uint16_t PlayerSeasonStats::red_cards = 0

◆ season

uint16_t PlayerSeasonStats::season = 0

◆ starts

uint16_t PlayerSeasonStats::starts = 0

◆ team_id

TeamID PlayerSeasonStats::team_id = 0

◆ yellow_cards

uint16_t PlayerSeasonStats::yellow_cards = 0

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