|
Player12
An open source football management simulator
|
#include <cstdint>#include <functional>#include <map>#include <memory>#include <optional>#include <string>#include <unordered_map>#include <utility>#include <vector>#include "global/languages.h"#include "global/stats_config.h"#include "global/types.h"#include "model/gamedate.h"Go to the source code of this file.
Classes | |
| struct | International::Fixture |
| struct | International::Group |
| struct | International::GroupRow |
| struct | International::Record |
| class | NationalTeams |
| National-team calendar, call-ups, matches and records. More... | |
| struct | NationalTeams::Team |
| struct | NationalTeams::Squad |
| struct | NationalTeams::Finals |
| struct | NationalTeams::Honour |
| struct | NationalTeams::Travel |
Namespaces | |
| namespace | International |
| National teams: confederations, competitions and pure helpers. | |
Enumerations | |
| enum class | International::Confederation : uint8_t { International::Europe , International::Americas , International::Asia } |
| enum class | International::Competition : uint8_t { International::Friendly = 0 , International::WorldQualifier , International::ContinentalQualifier , International::NationsLeague , International::NationsLeagueFinals , International::WorldFinals , International::ContinentalFinals } |
| enum class | International::Stage : uint8_t { International::Group = 0 , International::QuarterFinal , International::SemiFinal , International::Final } |
| enum class | International::CallUpResult : uint8_t { International::Ok = 0 , International::NoSquad , International::Locked , International::TooMany , International::TooFew , International::NeedGoalkeepers , International::Ineligible , International::Duplicate } |
| Why a squad chosen by a head coach was refused. More... | |
Functions | |
| const char * | International::confederationKey (Confederation confederation) |
| Confederation | International::confederationOf (Language nation) |
| std::string | International::teamNameKey (Language nation) |
| const char * | International::competitionKey (Competition competition) |
| bool | International::isFinals (Competition competition) |
| const char * | International::stageKey (Stage stage) |
| std::optional< Language > | International::winnerOf (const Fixture &fixture) |
| std::vector< GroupRow > | International::groupTable (const Group &group, const std::vector< Fixture > &fixtures, const std::map< Language, double > &rating) |
| bool | International::canSwitchNation (const Record &record, const GameDateValue &today) |
| std::vector< std::vector< std::pair< size_t, size_t > > > | International::roundRobin (size_t teams, bool double_round) |
| size_t | International::finalsSize (size_t pool) |
| const char * | International::callUpResultKey (CallUpResult result) |
| double | International::selectionScore (const Player &player, uint16_t caps, const StatsConfig &config) |
| std::vector< PlayerID > | International::selectSquad (const std::vector< const Player * > &eligible, size_t size, const StatsConfig &config, const std::unordered_map< PlayerID, uint16_t > &caps) |
Picks a squad of size: three goalkeepers and a balanced mix of defenders, midfielders and forwards, ranked by ability, form, condition and experience (caps); shortfalls are filled by the best remaining players. Deterministic (ties by player ID). | |
Variables | |
| constexpr size_t | International::WINDOW_SQUAD = 24 |
| constexpr size_t | International::FINALS_SQUAD = 26 |
| constexpr size_t | International::MIN_CALL_UPS = 18 |
| constexpr size_t | International::MIN_CALL_UP_GOALKEEPERS = 2 |
| constexpr int | International::MIN_SQUAD_AGE = 17 |