Player12
An open source football management simulator
Loading...
Searching...
No Matches
draw_ceremony.h File Reference
#include <cstddef>
#include <cstdint>
#include <optional>
#include <string>
#include <vector>
#include "global/types.h"
#include "model/continental.h"
#include "model/gamedate.h"

Go to the source code of this file.

Classes

struct  DrawReveal
 One tie (or one league-phase opponent) shown by a draw ceremony. More...
 
struct  DrawCeremony
 A draw the game has already made, laid out for its ceremony. More...
 

Namespaces

namespace  DrawCeremonies
 Builds draw ceremonies from draws already made.
 

Functions

std::optional< DrawCeremony > DrawCeremonies::cupRound (const Calendar &calendar, const GameData &gamedata, LeagueID root, std::uint8_t stage, TeamID focus_team)
 
std::optional< DrawCeremony > DrawCeremonies::latestCupRound (const Calendar &calendar, const GameData &gamedata, LeagueID root, const GameDateValue &today, TeamID focus_team)
 
std::optional< DrawCeremony > DrawCeremonies::continentalRound (const ContinentalCompetitions &continental, const Calendar &calendar, LeagueID competition_id, std::uint16_t season_year, Continental::Round round, TeamID focus_team)
 
std::optional< DrawCeremony > DrawCeremonies::latestContinentalRound (const ContinentalCompetitions &continental, const Calendar &calendar, LeagueID competition_id, const GameDateValue &today, TeamID focus_team)
 
bool DrawCeremonies::announcesDraw (const InboxMessage &message)
 
std::optional< DrawCeremony > DrawCeremonies::forMessage (const InboxMessage &message, const ContinentalCompetitions &continental, const Calendar &calendar, TeamID focus_team)
 
std::size_t DrawCeremonies::shownAt (float elapsed, float speed, std::size_t total, bool reduced_motion)
 

Variables

constexpr float DrawCeremonies::REVEAL_SECONDS = 0.9f