Player12
An open source football management simulator
Loading...
Searching...
No Matches
transfer_windows.h File Reference
#include <array>
#include <cstdint>
#include <optional>
#include <span>
#include "global/types.h"
#include "model/gamedate.h"

Go to the source code of this file.

Classes

struct  TransferWindows::MonthDay
 
struct  TransferWindows::Period
 
struct  TransferWindows::CountryRules
 

Namespaces

namespace  TransferWindows
 

Functions

std::span< const CountryRules > TransferWindows::countries ()
 
const CountryRules & TransferWindows::rulesFor (LeagueID league)
 
bool TransferWindows::isOpen (LeagueID league, const GameDateValue &date)
 
bool TransferWindows::isOpenAnywhere (const GameDateValue &date)
 
bool TransferWindows::isStartOfYearWindow (LeagueID league, const GameDateValue &date)
 
std::optional< GameDateValue > TransferWindows::windowEnd (LeagueID league, const GameDateValue &date)
 
bool TransferWindows::isDeadlineDay (LeagueID league, const GameDateValue &date)
 
GameDateValue TransferWindows::nextOpening (LeagueID league, const GameDateValue &date)
 
bool TransferWindows::canSignFreeAgent (LeagueID league, const GameDateValue &date)
 

Variables

constexpr std::int16_t TransferWindows::FREE_AGENTS_ANY_TIME = -1