|
Player12
An open source football management simulator
|
#include <cstddef>#include <cstdint>#include <limits>#include <string>#include <vector>#include "global/types.h"#include "model/match_analysis.h"Go to the source code of this file.
Classes | |
| struct | NextAction |
| One ranked piece of pending work with the reason it matters. More... | |
| struct | NextActionFacts |
| The facts the ranking is based on (gathered once per refresh). More... | |
| struct | NextActionFacts::Offer |
| struct | NextActionFacts::Person |
| struct | NextActionFacts::Report |
Namespaces | |
| namespace | NextActionRules |
Enumerations | |
| enum class | NextActionKind : std::uint8_t { UnavailableInLineup , IncomingOffer , PendingTalk , ContractExpiring , ScoutReportA , CongestedWeek , BoardWarning , WindowSquadHole , OppositionReport } |
| Kinds of pending work the next-best-action engine knows. More... | |
| enum class | ActionTarget : std::uint8_t { Lineup , Inbox , Transfers , Scouting , Training , Club , Player , Opposition } |
| Where an action is taken care of. More... | |
Functions | |
| std::vector< NextAction > | rankNextActions (const NextActionFacts &facts, std::size_t limit=std::numeric_limits< std::size_t >::max()) |
| NextActionFacts | gatherNextActionFacts (const GameController &controller) |
Variables | |
| constexpr int | NextActionRules::TIRED_CONDITION = 75 |
| constexpr int | NextActionRules::CONGESTED_TIRED_PLAYERS = 4 |
| constexpr float | NextActionRules::CONGESTED_AVERAGE = 82.0f |
| constexpr float | NextActionRules::BOARD_WARNING_CONFIDENCE = 35.0f |
| constexpr int | NextActionRules::WINDOW_WARNING_DAYS = 14 |
| constexpr int | NextActionRules::OPPOSITION_DAYS = 2 |
| constexpr std::size_t | NextActionRules::MAX_OFFER_ACTIONS = 2 |
|
strong |
|
strong |
| NextActionFacts gatherNextActionFacts | ( | const GameController & | controller | ) |
Reads the facts of the managed club from the controller.
| std::vector< NextAction > rankNextActions | ( | const NextActionFacts & | facts, |
| std::size_t | limit = std::numeric_limits< std::size_t >::max() |
||
| ) |
Ranks the pending work, most important first (pure, deterministic).