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

Final outcome of one competition in one season. More...

#include <season_history.h>

Public Attributes

uint16_t season = 0
 
uint16_t start_year = 0
 
MatchType competition_type = MatchType::LEAGUE
 
LeagueID competition_id = 0
 
std::string competition_name
 
TeamID champion_id = 0
 
TeamID runner_up_id = 0
 
std::vector< TeamID > promoted
 
std::vector< TeamID > relegated
 
PlayerID top_scorer_id = 0
 
uint16_t top_scorer_goals = 0
 

Detailed Description

Final outcome of one competition in one season.

League rows carry champion, runner-up, the clubs promoted out of the league and relegated out of it, and the league top scorer. Cup rows (competition_type == CUP, competition_id == country root league) carry the cup winner as champion and the losing finalist as runner-up.

Member Data Documentation

◆ champion_id

TeamID SeasonHistoryEntry::champion_id = 0

0 when undecided.

◆ competition_id

LeagueID SeasonHistoryEntry::competition_id = 0

◆ competition_name

std::string SeasonHistoryEntry::competition_name

Fallback name; "@KEY" (a language key) for continental competitions. Screens name leagues and cups from competition_id in the current language.

◆ competition_type

MatchType SeasonHistoryEntry::competition_type = MatchType::LEAGUE

◆ promoted

std::vector<TeamID> SeasonHistoryEntry::promoted

◆ relegated

std::vector<TeamID> SeasonHistoryEntry::relegated

◆ runner_up_id

TeamID SeasonHistoryEntry::runner_up_id = 0

0 when undecided.

◆ season

uint16_t SeasonHistoryEntry::season = 0

Game season number (1 = first season).

◆ start_year

uint16_t SeasonHistoryEntry::start_year = 0

Calendar year the season started.

◆ top_scorer_goals

uint16_t SeasonHistoryEntry::top_scorer_goals = 0

◆ top_scorer_id

PlayerID SeasonHistoryEntry::top_scorer_id = 0

0 when no goals were attributed.


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