Player12
An open source football management simulator
Loading...
Searching...
No Matches
season_agenda.h
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2// Football Management Project
3// Copyright (c) 2025 - 2026 Flavio Milinanni. All Rights Reserved.
4//
5// This file is part of the Football Management Project.
6// See the LICENSE file in the project root.
7// -----------------------------------------------------------------------------
8
9#pragma once
10
11#include <cstdint>
12#include <vector>
13
14#include "global/types.h"
15#include "model/gamedate.h"
16
17class Match;
18
34
37{
40 int span_days = 1;
41 // Fixtures only.
46 bool played = false;
47 std::uint8_t home_score = 0;
48 std::uint8_t away_score = 0;
49 std::uint16_t kickoff = 0;
50};
51
59namespace SeasonAgenda
60{
62const char* kindKey(AgendaKind kind);
63
66
74std::vector<AgendaEvent> build(std::uint16_t season_start_year,
75 const std::vector<Match>& fixtures,
76 bool board_reviews, LeagueID league);
77} // namespace SeasonAgenda
Represents a football match between two teams.
Definition match.h:38
Everything dated in a club's season, from 1 July to 30 June: the season start (last season's review,...
Definition season_agenda.h:60
const char * kindKey(AgendaKind kind)
Definition season_agenda.cpp:49
GameDateValue seasonStart(const GameDateValue &date)
Definition season_agenda.cpp:80
std::vector< AgendaEvent > build(std::uint16_t season_start_year, const std::vector< Match > &fixtures, bool board_reviews, LeagueID league)
Definition season_agenda.cpp:86
AgendaKind
Kinds of dated events in a club's season (display order per day).
Definition season_agenda.h:21
@ YouthDecisionDeadline
@ TransferWindowOpens
@ InternationalBreak
One entry of the season agenda.
Definition season_agenda.h:37
std::uint8_t home_score
Definition season_agenda.h:47
int span_days
Definition season_agenda.h:40
std::uint16_t kickoff
Definition season_agenda.h:49
std::uint8_t away_score
Definition season_agenda.h:48
bool played
Definition season_agenda.h:46
MatchType match_type
Definition season_agenda.h:44
AgendaKind kind
Definition season_agenda.h:39
TeamID away_id
Definition season_agenda.h:43
LeagueID competition_id
Definition season_agenda.h:45
TeamID home_id
Definition season_agenda.h:42
GameDateValue date
Definition season_agenda.h:38
Represents a specific date in the game world.
Definition gamedate.h:20
MatchType
Represents the type or category of a match.
Definition types.h:40
uint8_t LeagueID
Type alias for League identifiers.
Definition types.h:15
uint16_t TeamID
Type alias for Team identifiers.
Definition types.h:18