Player12
An open source football management simulator
Loading...
Searching...
No Matches
holiday.cpp File Reference
#include "model/holiday.h"
#include <algorithm>
#include "database/sqlite_rows.h"
#include "model/calendar.h"
#include "model/transfer_windows.h"

Namespaces

namespace  Holiday
 Targets and stop rules of "continue until".
 

Functions

GameDateValue Holiday::windowEndDate (LeagueID league, const GameDateValue &today)
 
std::optional< GameDateValue > Holiday::targetDate (const HolidayPlan &plan, const GameDateValue &today, const std::optional< GameDateValue > &next_match, LeagueID league)
 
std::optional< HolidayStop > Holiday::checkStop (const HolidayPlan &plan, const HolidayDay &day)
 
const char * Holiday::stopKey (HolidayStop stop)
 
HolidayPreferences Holiday::loadPreferences (const std::shared_ptr< DatabaseConnection > &db_conn)
 
void Holiday::savePreferences (const std::shared_ptr< DatabaseConnection > &db_conn, const HolidayPreferences &preferences)