|
Player12
An open source football management simulator
|
#include <array>#include <cstdint>#include <string>#include <vector>#include "global/types.h"#include "model/league.h"Go to the source code of this file.
Classes | |
| struct | Standings::RaceFixture |
| struct | Standings::RaceInput |
| struct | Standings::RacePlaces |
| Table places that decide something. Promotion, play-off and continental places count from the top (play-off places follow the promotion places; continental includes continental_top), relegation from the bottom. 0 means the league has none. More... | |
| struct | Standings::ClinchReport |
| struct | Standings::RaceNeed |
Namespaces | |
| namespace | Standings |
| Run-in maths of a league table: which outcomes are mathematically decided (title, promotion, play-off and continental places, survival) and what a club still needs from its own games. | |
Enumerations | |
| enum class | Standings::Race : uint8_t { Standings::TITLE , Standings::PROMOTION , Standings::PLAY_OFF , Standings::CONTINENTAL_TOP , Standings::CONTINENTAL , Standings::SURVIVAL } |
| enum class | Standings::RaceState : uint8_t { Standings::NONE , Standings::OPEN , Standings::SECURED , Standings::LOST } |
| enum class | Standings::Clinch : uint8_t { Standings::OPEN , Standings::CHAMPION , Standings::PROMOTED , Standings::PLAY_OFF , Standings::CONTINENTAL_TOP , Standings::CONTINENTAL , Standings::SAFE , Standings::RELEGATED } |
Functions | |
| uint16_t | Standings::raceCutoff (Race race, const RacePlaces &places, size_t clubs) |
| ClinchReport | Standings::clinchReport (const RaceInput &input, const RacePlaces &places, TeamID team) |
| Clinch | Standings::clinchStatus (const RaceInput &input, const RacePlaces &places, TeamID team) |
| std::vector< ClinchReport > | Standings::clinchReports (const RaceInput &input, const RacePlaces &places) |
| std::vector< RaceNeed > | Standings::whatYouNeed (const RaceInput &input, const RacePlaces &places, TeamID team) |
What team needs in its still open races, most ambitious first. | |
| RaceInput | Standings::raceInput (const League &league, const Calendar &calendar, const GameData &gamedata) |
| RacePlaces | Standings::racePlaces (const GameData &gamedata, const ContinentalCompetitions *continental, LeagueID league_id) |
| Deciding places of a league: promotion and relegation as the season-end movements apply them; continental places (top divisions only) from the current association ranking, minus the place the domestic cup winner can take. | |
Variables | |
| constexpr size_t | Standings::RACE_COUNT = 6 |
| constexpr uint16_t | Standings::MAX_NEED_GAMES = 6 |