#include <array>
#include <cstddef>
#include <cstdint>
#include <map>
#include <memory>
#include <optional>
#include <span>
#include <string>
#include <utility>
#include <vector>
#include "global/types.h"
#include "model/gamedate.h"
Go to the source code of this file.
|
| namespace | Awards |
| | Selection rules of the league honours.
|
| |
|
| enum class | AwardType : std::uint8_t {
PlayerOfMonth = 0
, YoungPlayerOfMonth
, ManagerOfMonth
, GoalOfMonth
,
PlayerOfSeason
, YoungPlayerOfSeason
, GoldenBoot
, GoldenGlove
,
TeamOfSeason
, ManagerOfSeason
, COUNT
} |
| | League honours (values are persisted). More...
|
| |
|
| const char * | awardTypeKey (AwardType type) |
| |
| float | Awards::playerScore (const AwardPlayerTally &tally, bool goalkeeper) |
| |
| std::optional< std::size_t > | Awards::bestPlayer (std::span< const AwardCandidate > candidates, std::uint16_t min_minutes, int max_age) |
| |
| std::optional< std::size_t > | Awards::goldenBoot (std::span< const AwardCandidate > candidates) |
| |
| std::optional< std::size_t > | Awards::goldenGlove (std::span< const AwardCandidate > candidates, std::uint16_t min_minutes) |
| |
| std::array< std::optional< std::size_t >, TEAM_OF_SEASON_SIZE > | Awards::teamOfSeason (std::span< const AwardCandidate > candidates, std::uint16_t min_minutes) |
| |
| const char * | Awards::slotKey (std::uint8_t slot) |
| |
| std::optional< std::size_t > | Awards::bestManager (std::span< const AwardClubTally > clubs, std::uint16_t min_matches) |
| |
| std::uint16_t | Awards::seasonMinMinutes (std::span< const AwardCandidate > candidates) |
| |
| float | Awards::goalScore (std::uint8_t minute, int own_before, int other_before, bool decisive, int reputation_gap, bool assisted) |
| |
| float | Awards::valueMultiplier (std::span< const AwardRecord > honours, const GameDateValue &today) |
| |
◆ AwardType
League honours (values are persisted).
| Enumerator |
|---|
| PlayerOfMonth | |
| YoungPlayerOfMonth | |
| ManagerOfMonth | |
| GoalOfMonth | |
| PlayerOfSeason | |
| YoungPlayerOfSeason | |
| GoldenBoot | |
| GoldenGlove | |
| TeamOfSeason | |
| ManagerOfSeason | |
| COUNT | |
◆ awardTypeKey()
Language key naming type (e.g. "AWARD_PLAYER_OF_MONTH").