Player12
An open source football management simulator
Loading...
Searching...
No Matches
SeasonAgenda Namespace Reference

Everything dated in a club's season, from 1 July to 30 June: the season start (last season's review, new objectives and budgets), fixtures (league, cup, friendlies), transfer windows opening and deadline days, international and winter breaks, the youth intake cycle, monthly board reviews and contract reminders. More...

Functions

const char * kindKey (AgendaKind kind)
 
GameDateValue seasonStart (const GameDateValue &date)
 
std::vector< AgendaEvent > build (std::uint16_t season_start_year, const std::vector< Match > &fixtures, bool board_reviews, LeagueID league)
 

Detailed Description

Everything dated in a club's season, from 1 July to 30 June: the season start (last season's review, new objectives and budgets), fixtures (league, cup, friendlies), transfer windows opening and deadline days, international and winter breaks, the youth intake cycle, monthly board reviews and contract reminders.

Function Documentation

◆ build()

std::vector< AgendaEvent > SeasonAgenda::build ( std::uint16_t  season_start_year,
const std::vector< Match > &  fixtures,
bool  board_reviews,
LeagueID  league 
)

The agenda of the season starting on 1 July of season_start_year for a club of league with fixtures (any order; other seasons' fixtures ignored). Sorted by date, then by kind. Transfer windows and deadline days are those of the club's country (TransferWindows). Board reviews are only listed when the club has a board to answer to (board_reviews).

◆ kindKey()

const char * SeasonAgenda::kindKey ( AgendaKind  kind)

Language key naming kind (e.g. "AGENDA_TRANSFER_DEADLINE").

◆ seasonStart()

GameDateValue SeasonAgenda::seasonStart ( const GameDateValue &  date)

First day of the season containing date (1 July).